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 image, the class instance variable is still nil.
Anything else I have to ensure?
As Sven said I forgot that you need to register your class.
You can add this in the class side on Pharo 5-6:
"protocol: class initialization"
initialize
super initialize.
SessionManager default registerToolClassNamed: self name
Yep, this makes more sense and, indeed, works.
Thanks
Raffaello