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

Jay Gould jaygould at singapore.com
Fri Jan 12 02:46:45 UTC 2007


I'm working an a small app that will support some text editing, searching, and cataloging. (I'm using 3.9 on Windows).

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. 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?

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?

Thanks.

-- 
Low Prices, Wide Selection of Gas Masks
Everyday low price guarantee. We offer special police discounts and an extremely wide selection of gas masks, filters and huge selection of preparedness gear.
http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=24e08df2353d2e6cb9bae3a0e3c8c61e



More information about the Beginners mailing list