[squeak-dev] The Trunk: Morphic-kfr.1415.mcz

Marcel Taeumel marcel.taeumel at hpi.de
Tue Apr 17 05:52:21 UTC 2018


Hi, there.

Just replicate the behavior of #openInWorld, which uses "self currentWorld".

Best,
Marcel
Am 16.04.2018 21:32:21 schrieb Eliot Miranda <eliot.miranda at gmail.com>:
Hi Karl,

On Mon, Apr 16, 2018 at 12:01 PM, <commits at source.squeak.org [mailto:commits at source.squeak.org]> wrote:

Karl Ramberg uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-kfr.1415.mcz [http://source.squeak.org/trunk/Morphic-kfr.1415.mcz]

==================== Summary ====================

Name: Morphic-kfr.1415
Author: kfr
Time: 16 April 2018, 9:00:44.326565 pm
UUID: fd7edd49-a300-764f-8d5d-fa2d2ad7b65b
Ancestors: Morphic-mt.1414

self world can be nil here

=============== Diff against Morphic-mt.1414 ===============

Item was changed:
  ----- Method: Morph>>openNear: (in category 'initialization') -----
  openNear: aRectangle
        self
                openNear: aRectangle
+               in: Project current world!
-               in: self world!


Shouldn't that be 
 
             in: (self world ifNil: [Project current world])

?  If one were using an arbitrary world in which one asked a Morph to open, wouldn't it be strange if that child morph opened up not in the world of the parent but in the current world?  Isn't this important enough to provide an accessor such as 
Morph>>world access
    theBestOfAllPossibleWorlds
        ^self world ifNil: [Project current world]


_,,,^..^,,,_

best, Candide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20180417/bcc921f8/attachment.html>


More information about the Squeak-dev mailing list