On 04/03/2008, Damien Cassou <
[hidden email]> wrote:
> Hi,
>
> I would like to catch calls to (UIManager default inform:) to
> automatically click ok. I'm trying:
>
> [UIManager default inform: 'truc'] valueSuppressingMessages: #('truc').
>
>
> without success. Can somebody help me please?
>
Create class:
------
MorphicUIManager subclass: #MyUIManager
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: '...'
MyUIManager>>inform: aString
" do nothing"
--------
Then set default ui manager:
oldManager := UIManager default.
UIManager default: MyUIManager new.
.. run your code ..
UIManager default: oldManager.
> --
>
> Damien Cassou
>
>
--
Best regards,
Igor Stasenko AKA sig.