<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-size:12.8px">tem was added:</span><br style="font-size:12.8px"><span style="font-size:12.8px">+ ----- Method: MorphicProject>></span><wbr style="font-size:12.8px"><span style="font-size:12.8px">clearGlobalState (in category 'enter') -----</span><br style="font-size:12.8px"><span style="font-size:12.8px">+ clearGlobalState</span><br style="font-size:12.8px"><span style="font-size:12.8px">+       "Clean up global state. The global variables World, ActiveWorld, ActiveHand and ActiveEvent</span><br style="font-size:12.8px"><span style="font-size:12.8px">+       provide convenient access to the state of the active project in Morphic. Clear their prior values</span><br style="font-size:12.8px"><span style="font-size:12.8px">+       when leaving an active project. This method may be removed if the use of global state variables</span><br style="font-size:12.8px"><span style="font-size:12.8px">+       is eliminated."</span><br style="font-size:12.8px"><span style="font-size:12.8px">+</span><br style="font-size:12.8px"><span style="font-size:12.8px">+       (Smalltalk at: #World ifAbsent: []) ifNotNil: [:w | w := nil]. "If global World is defined, clear it now"</span><br style="font-size:12.8px"><span style="font-size:12.8px">+       ActiveWorld := ActiveHand := ActiveEvent := nil.</span><br style="font-size:12.8px"><span style="font-size:12.8px">+ !</span><br style="font-size:12.8px"><br>
  ----- Method: MorphicProject>><wbr>finalEnterActions: (in category 'enter') -----<br>
  finalEnterActions: leavingProject<br>
        "Perform the final actions necessary as the receiver project is entered"<br>
<br>
        | navigator armsLengthCmd navType thingsToUnhibernate |<br>
+       "If this image has a global World variable, update it now"<br>
+       (Smalltalk at: #World ifAbsent: [])<br>
+               ifNotNil: [:w | w := world].  "Signifies Morphic"<br>
-       World := world.  "Signifies Morphic"<br>
        world install.<br></blockquote><div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)">​I guess assigning to the argument of ifNotNil: is not what you had in mind in these two cases?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)">- Bert -​</div></div></div></div>