[squeak-dev] Re: Trying to undeerstand Morphic subclasses and step/stepAt:

Bob Arning arning315 at comcast.net
Sun Feb 5 15:59:50 UTC 2012


Fundamentally, the question is whether you are trying to create a new 
kind of windowing behavior (if so, subclassing may be the right 
approach) or if you just want your new widget inside a window for ease 
of moving, collapsing, expanding, etc (if so, adding your morph to a 
plain SystemWindow is probably better).

Also ask yourself if you could ever want more than one of your widgets 
inside a single window. Or if you could ever want your widget naked in 
the World or inside some other graphical structure. Yes to any of these 
is a further indication to move away from subclassing and toward 
assembling components into larger components.

Cheers,
Bob

On 2/5/12 10:16 AM, Dave Mason wrote:
> On 2012-Feb-5, at 10:11 , Bob Arning wrote:
>
>> One thing to consider is whether you really want to subclass SystemWindow or if it might be better to instantiate a vanilla SystemWindow and install your specialized morph inside it.
> What are the considerations for one approach over the other?  (In broad terms - not asking for a tutorial here! :-)
>
> Thanks  ../Dave
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20120205/f105d303/attachment.htm


More information about the Squeak-dev mailing list