Re: [Pharo-users] running code on image starts and quitting

2017-02-21 Thread Raffaello Giulietti
On 2017-02-21 17:43, Cyril Ferlicot D. wrote: On 21/02/2017 17:29, Raffaello Giulietti wrote: 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 i

Re: [Pharo-users] running code on image starts and quitting

2017-02-21 Thread Cyril Ferlicot D.
On 21/02/2017 17:29, Raffaello Giulietti wrote: > > 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

Re: [Pharo-users] running code on image starts and quitting

2017-02-21 Thread Raffaello Giulietti
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 met

Re: [Pharo-users] running code on image starts and quitting

2017-02-21 Thread Sven Van Caekenberghe
You also have to register with SessionManager (see its class comment, see its references). > On 21 Feb 2017, at 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)

Re: [Pharo-users] running code on image starts and quitting

2017-02-21 Thread Cyril Ferlicot D.
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:, #shutD