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 10:14 am UTC on 6 May 2019
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

See also

aMorph submorphsDo: aBlock_
tagBeginner