Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
submorphs
Last updated at 11:21 pm UTC on 6 June 2018
A Morph may contain other morphs. They are in a collection called 'submorphs' ("child nodes").



 m := Morph new openInWorld.
 m submorphs 

The result of print-it is

 #()

i.e. no submorph.

The method
 #addMorph: aMorph
is used to add a submorph.


Example - aMorph addMorph: anotherMorph

tagBeginner