Running code on image startup

Janko Mivšek janko.mivsek at
Mon Jan 28 13:35:13 UTC 2008

Hi Luke,

Luke Gorrie wrote:

> Is there a simple way that I could make this happen automatically upon
> either loading my code from Monticello or loading my Project file? I
> know that ChangeSets have a mechanism along these lines and I could
> use a pointer to an example or somesuch.

You can simply put a startup registration code into class method 
#initialize of one of your classes. This method will be called every 
time you load a package consisting that class.

Best regards

Janko Mivšek
Smalltalk Web Application Server

More information about the Squeak-dev mailing list