Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Project current world
Last updated at 1:25 pm UTC on 2 May 2019
 Project current world

is a code idiom to be used in a Workspace. It gives access to the morph which is playing the role of the desktop in a MorphicProject. It is a PasteUpMorph object.

 Project current world class 
     PasteUpMorph

This instance of PasteUpMorph answers #isWorldMorph with true. It keeps its state in a WorldState object.

In an MVC project we get
 Project current world class 
     ControlManager


The equivalent code for 'Project current world' to be used in a method is just
 self world

The morphs which are placed on the desktop may be accessed with

 Project current world submorphs

If you want to get at a BookMorph which is available in the project you execute

 Project current world findA: BookMorph
or
 Project current world submorphOfClass: BookMorph


If there are several morphs of the same type you get the collection with

 Project current world submorphsSatisfying: [:m | m isKindOf: RectangleMorph]

For more accessors see category 'submorphs-accessing' in class Morph.


See also