[Cuis-dev] Embedded Squeak/Cuis

Douglas Brebner kirtai+st at gmail.com
Fri Sep 4 08:04:54 PDT 2020


On 04/09/2020 15:53, Mariano Montone via Cuis-dev wrote:
> El 4/9/20 a las 09:28, Douglas Brebner via Cuis-dev escribió:
>> On another note, why SystemWindows? Shouldn't this be handled by a
>> Morph? (Which may, in turn, be in a SystemWindow.)
>>
>>
>> SystemWindows have been bugging me for a while and I just realised why.
>> They can't really be composed with other Morphs.
>>
> I'm of the same opinion. I've found myself being incapable of reusing or
> embedding some morph because it was implemented as a SystemWindow
> (subclass). In my opinion, a better design would be to implement every
> morph as one that can stand on its own without a window, and then have
> SystemWindowMorph as a pluggable morph. Like: (SystemWindow on: myMorph)
> openInWorld.


Yes, something like this :)


IIRC (and I may be very wrong), back in the Squeak Central days, 
PasteUpMorphs were used a lot for new creations (Fabrik, BookMorph) 
while SystemWindows were mostly used for MVC ports. Might it be worth 
looking into that approach again?




More information about the Cuis-dev mailing list