To obtain the after behavior, the classical way is to define an  
'initialize' method on the class side of one your class.

Cheers,
Alexandre

On 29 Dec 2009, at 04:09, Adrian Kuhn wrote:

> It need to turn off system notifications for TestCase while gofer  
> updates
> SUnit. One way I see would be to execute some code snippet before  
> and after
> loading. However the Script button in Monticello seems to be broken.  
> I cannot
> add scripts to the package.
>
> What can I do?
>
> So the current way to load akuhn SUnit is
>
>       [SystemChangeNotifier uniqueInstance noMoreNotificationsFor:  
> TestCase.
>       Gofer it
>                displabePackageCache;
>               squeaksource: 'akuhn';
>               package: 'SUnit';
>               package: 'SUnitGUI';
>               load ] ensure: [ TestCase initialize ].
>
> which is well ... quite ugly for a Gofer script.
>
> --AA
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to