Notes on the World PasteUpMorph instance
Last updated at 6:12 pm UTC on 26 August 2016
The data structure kept in the World variable follows the Composite pattern.
'The Design Patterns Smalltalk Companion' by Alpert, Brown, Woolf, p. 137: Composite pattern.
- Morph corresponds to 'Component' there.
- Leaf and Composite are not factored out.
- Thus Morph has all the functions of Component, Leaf and Composite.
To get an array with the components of a Morph you send it the message 'submorphs'.
A red-click anywhere on the desktop (thus on the the instance of PasteUpMorph kept in World) brings up an instance of Dynamic open menu.