World PasteUpMorph object (data structure)
Last updated at 1:47 pm UTC on 6 May 2019
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.