[squeak-dev] How to catch #inform: messages?
bert at freudenbergs.de
Tue Mar 4 11:41:50 UTC 2008
On Mar 4, 2008, at 8:59 , Igor Stasenko wrote:
> or even you may try the same, but without need in creating a class:
> oldMethod := MorphicUIManager methodDictionary at: #inform:
> MorphicUIManager compileSilently: 'inform: aMessage "do nothing"'
> classified: 'dumb'.
> .. run your code..
> MorpicUIManager addSelectorSilently: #inform: withMethod: oldMethod
How utterly evil ;)
You would at least have to use an #ensure: block. And also you would
need to verify that the code did not actually compile a new version
A less evil way would be to make #inform: use a Notification that
could be handled to suppress the UI.
- Bert -
More information about the Squeak-dev