[Pharo-project] how to know if an image is resuming or not

Stéphane Ducasse stephane.ducasse at inria.fr
Tue Nov 9 08:58:17 CET 2010


>> 
> what about using some variable, like:
> 
> RunTests := true.
> self saveimage.
> RunTests := false.
> self saveImage.
> 
> and then in startUp:
> 
> startUp: resuming
> 
> ( resuming and: [ RunTests] ) ifTrue: [ self runTests ]
> 

but my code is executed when a menu is selected. So the interaction with startUp: is not really good.

Stef





More information about the Pharo-project mailing list