Running code on image startup

Edgar J. De Cleene edgardec2001 at
Mon Jan 28 09:57:21 UTC 2008

El 1/28/08 5:47 AM, "Luke Gorrie" <lukego at> escribió:

> Howdy!
> I'd like some morphs to update themselves when the image is started,
> but I don't see a convenient "image started" hook to attach to.
> Can someone suggest a way?
> (The morphs are supposed to present a directory based on the files in
> some directory and I want to be able to maintain those files
> separately from the image.)
> Hacking SmalltalkImage>>snapshot:andQuit:embedded: is tempting but
> perhaps excessively kludgy. :-)
> Cheers,
> -Luke

You could have some class named MyStart, with class method startUp with your
Then do Smalltalk addToStartUpList: MyStart in Workspace.

Ready !

More information about the Squeak-dev mailing list