Login  Register

Re: No more dirty packages in Pharo

Posted by Sean P. DeNigris on Sep 26, 2013; 1:37pm
URL: https://forum.world.st/No-more-dirty-packages-in-Pharo-tp4705752p4710541.html

Sean P. DeNigris wrote
1) #asMorph returns a presenter (MAXyzContainer), not a Morph
And here's my very dramatic ;) initial experience which led me to these conclusions (from http://forum.world.st/Customizing-Magritte-Morphic-Forms-tp4251518p4251623.html):
Sean P. DeNigris wrote
I realized from your snippet what was missing in my attempt:

| form window |
        form := anAddress asMorph addButtons.
        window := SystemWindow new addMorph: form ***morph*** fullFrame: (LayoutFrame fractions: (0@0 corner: 1.0@1.0) offsets: (10@10 corner: 10@10)).
        window openInWorld.

OMG! It seems terribly misleading to me to call something a morph that is not a morph. This violates the principle of least surprise, and while surprises are nice today because it's a holiday, not so much the rest of the year ;-)
Cheers,
Sean