[Newbies] Two questions: which UI toolkit to use, and how to force an application's objects to be destroyed when Squeak terminates?

cdrick cdrick65 at gmail.com
Sat Jan 13 09:09:52 UTC 2007


> My first question is about GUI toolkits. Should I use Morphic or Tweak? I know Morphic is (right now) the default Squeak GUI, and that it comes with the standard Squeak image while Tweak does not, but I've read (can't remember where) that Tweak is going to replace Morphic eventually as the standard UI.

It would be cool but it doesn't seem to be planned yet...........

> I don't really need anything fancy, just widgets to handle text input/display, images, >tables, buttons, etc. Which toolkit would be most practical/appropriate for something like >this?
Seaside ??  :)
>
> My second question is about application startup and shutdown. I'd like for this app to startup when the main class is sent a single message (e.g., #startup), and have it terminate when the user closes it, or alternately, when the user closes Squeak; that is, if they save & exit from Squeak without terminating the app first, I want the app to terminate anyway, for the objects to be destroyed (reclaimed, garbage collected, what have you) and not saved to the image file. How do I ensure its objects are released when Squeak is terminated, and not saved to disk?

In the class Smalltalk, you'll find  #addToStartupList:  and
#addToShutdownList: .

hope this help

Cédrick

ps: one very convenient tool is the method finder (or method name)
combined with intention revealing selectors. You can use it with a
text selected and pressing (ALT Shift w). For instance, here, looking
for start or better addToStart ...


More information about the Beginners mailing list