Hello
The following questions have been raised yesterday concerning the
description of MorphicModel [1], page 2338.
MorphicModel is an important class, it has many subclasses,
potentially many thousands [2].
Page 2338 reads more like an outline and needs to be improved by
adding more text, illustrations and answering questions
1. "A morphicModel is usually the root of a morphic tree depicting its
appearance. "
--> give an example with code and a screen shot
2. "A MorphicModel is used to represent structures with state and
behavior as well as graphical structure"
--> illustrate this by means of the example given under 1.
3. "An object (morph, widget) will not respond to an event unless it
has been sensitized to that event."
--> What does 'sensitized' mean here?
4. Is a structure, in the context of a MorphicModel, an instance of
the class to which one or more submorphs have been added and
(optionally) sensitized?
5. Are constituent morphs added to a world (World?) or and instance of
MorphModel or perhaps as an instance of PastUpMorph?
6. When should I , as a developer of some application, consider to use
a MorphicModel over "plain" Morphs.
7. All the pluggable stuff made with MorphicToolBuilder are
MorphicModels, but what is the the added value MorphicModel supplies
here?
8. What is the function of the menu items revolving around prototypes
(something like 'Be the prototype for this model')?
Answers, partial ones as well are welcome!
Regards
Hannes
-----------------------------------
[1] MorphicModel
http://wiki.squeak.org/squeak/2338[2] MorphicModel subclasses
http://wiki.squeak.org/squeak/2549 Note: I have images with thousands of MorphicModel subclasses.
These subclasses are linked to instances of PasteUpMorph.