Strangeness with AcceptableCleanTextMorph?

Dan Ingalls DanI at wdi.disney.com
Wed Aug 19 21:51:06 UTC 1998


>Hi all again:
>
>Maybe I'm still green with Squeak (answer:  yup!) but I'm wondering if I've 
>found a problem with the AcceptableCleanTextMorph in the New Morph menu...
>
>If I pull one out of the New Morph -> Windows menu and plunk it down someplace,
>when I move the pointer OUT of the morph I get a "Message not understood: 
>editor" error.  A quick flick through the debugger shows the problem seems
>to be in the method inherited from PluggableTextMorph:
> ...
>
>Am I just using Morphic wrong, or is this a bug?  

Well, I think the answer is yes to both.  The problem is that PluggableTextMorph (and its subclass ACTM and, in fact, just about everything in the Windows category) is not intended to be instantiated out in the open, but rather as parts of a SystemWindow.

I consider it as a bug in two ways:

1.  If we had implemented these classes with a little more care, they could probably all live out in the open pretty well, and the morphic browsers would be more pleasantly deconstructable.  As it is, this whole category and the whole morphic window replacment for MVC was done in a week or two, and this property was not properly attended to.

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 condidates in the 'new morph...' menu.

And so, yes, you were using Morphic wrong, but it is our fault ;-).

	- Dan





More information about the Squeak-dev mailing list