Excluding from 'new morph' menu (was Strangeness with...)

scottw at wdi.disney.com scottw at wdi.disney.com
Wed Aug 19 22:53:00 UTC 1998


At 2:51 PM -0700 8/19/98, Dan Ingalls wrote (in reply to Kevin Fisher):

>2.  Even if we decide that is OK to have some specialized classes that can't 
>live out in the open, it is still a bug to leave them listed as candidates in 
>the 'new morph...' menu.


Incidentally, there's a simple protocol which allows a Morph subclass to specify whether or not it wishes to be listed in the "new morph" menu -- it's Morph class #includeInNewMorphMenu.

Simply reimplement this method to read "^ false" in any Morph subclass which you want to exclude from the 'new morph' menu.

Quite a few morphs that shouldn't really live "out in the open" ought to be excluded from the menu in this fashion, but have not been -- oversights which, stirred up by this thread, we will probably remedy in an update before too long.

  -- Scott





More information about the Squeak-dev mailing list