As for every other objects initialize is called when the object is created. Upgrading code might change the shape of the object but then there is no initialize call. Do you want to have initialize called every tiny code change? Using *cello you can use postLoadDoits to tweak stuff. Norbert Am 14.01.2013 um 07:20 schrieb Sven Van Caekenberghe <sven@stfx.eu>:
Hi,
For a long time I have been having troubles with #initialize (not) being sent to classes that just got loaded.
Apparently #initialize is only sent to *newly* loaded classes that did not exist before ?
It does not get sent to existing classes being reloaded/overwritten ?
Does the fact that the #initialize class method itself gets overwritten (actually changes) have anything to do with it ?
What would be the best practice here ? The most portable one ?
I want to be able to make sure #initialize is sent when I want it.
Thx,
Sven
PS: I am looking for a solution that would work for Monticello package loading, via Gofer or Metacello as well as regular #fileIn.
-- Sven Van Caekenberghe http://stfx.eu Smalltalk is the Red Pill