Last updated at 2:20 pm UTC on 16 January 2006
Every graphical object (including strings) you see on the screen within a Morphic Project is a Morph. Morphs may be simple or complex.
To save space a Morph has only a few instance variables
For simple morphs the value of the 'extension' variable is simply MorphExtension. For more complex morphs it is an instance of this MorphExtension class, which keeps additional instance variables the Morph needs.
To add more flexibility this even includes an instance variable 'otherProperties' (an IdentityDictionary object) to keep additional data. You may use this to add your own data to a morph.
You do not have to deal with MorphExtension directly. You just use messages of the type
you simply send to the Morph.
(P.S. properties have to be in the form of aSymbol, not aString.)
Last update [1-Mar-03] Hannes Hirzel