Some Morphic Advice?

Bolot Kerimbaev bolot at cc.gatech.edu
Thu Nov 18 05:54:24 UTC 1999


Let's do some investigation, type this in the Workspace:

previous project

alt-shift-e (or cmd-shift-e) shows us all methods that contain that
substring. One of them is HandMorph>>buildWorldMenu. The corresponding
method is PasteUpMorph>>goBack:, which does:

self sleep.
Project returnToPreviousProject.

Project returnToPreviousProject does (among other things):
prevProj enter: true revert: false saveForRevert: false

So, things you're interested in are:
PasteUpMorph>>sleep
Project>>enter:revert:saveForRevert:
PasteUpMorph>>install
(the latter is called from the project's method)

For detecting start up, check out
SystemDictionary>>addToStartUpList:
SystemDictionary>>addToShutDownList:
(Smalltalk is an instance of SystemDictionary).
The class that is added to that list must implement #startUp/#shutDown,
respectively. So, on start up you can check which project is active, and
force it to do its splash (unless further investigation reveals that
launching Squeak already causes call to PasteUpMorph>>install).

Hope this helps.

Bolot





More information about the Squeak-dev mailing list