Running code on image startup
Jon Hylands
jon at huv.com
Mon Jan 28 13:03:37 UTC 2008
On Mon, 28 Jan 2008 06:57:21 -0300, "Edgar J. De Cleene"
<edgardec2001 at yahoo.com.ar> wrote:
> You could have some class named MyStart, with class method startUp with your
> code.
> Then do Smalltalk addToStartUpList: MyStart in Workspace.
Actually, the class side method you need to implement is #startUp:
The argument is a boolean, to say whether the image is a fresh start or
resuming from an image save.
Later,
Jon
--------------------------------------------------------------
Jon Hylands Jon at huv.com http://www.huv.com/jon
Project: Micro Raptor (Small Biped Velociraptor Robot)
http://www.huv.com/blog
More information about the Squeak-dev
mailing list
|