Running code on image startup
janko.mivsek at eranova.si
Mon Jan 28 13:35:13 UTC 2008
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.
Smalltalk Web Application Server
More information about the Squeak-dev