Squeak
  QotD    "To be or not to be" – Shakespeare
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Morph object -- setProperty:toValue:
Last updated at 9:58 am UTC on 2 November 2020
A morph object may carry many properties by using the method

 setProperty:toValue:

Example

Get an Inspector on a SketchMorph which is on the desktop and evaluate in the code pane

 self setProperty: #isSlide toValue: true.


Another morph object called "PresentationNavigation" may then get all the morph objects on the desktop


 slideCollection 
 ^(self project world
        submorphsSatisfying: [:m | m hasProperty: #isSlide]).


and present them one after the other thus showing only one at once.


See also

Post it morphs or slides for a presentation