Feb. 21, 2017
4:29 p.m.
On 2017-02-21 17:10, Cyril Ferlicot D. wrote:
On 21/02/2017 16:54, Raffaello Giulietti wrote:
Hi guys,
I need to run some Pharo code whenever the image starts. Similarly on (clean) quitting. What's the recommended practice?
Regards RG
Hello!
Every classes should be able to override the methods #startUp, #startUp:, #shutDown and #shutDown: in order to do some work.
Hi Cyril, doesn't seem to work in my case. Just for fun, I try to set a class instance variable to Time current in the class-side #startUp method and quit the image with saving. Upon restarting the image, the class instance variable is still nil. Anything else I have to ensure?