[ENH] MorphicDependents, MasterSlaveMorph
Stephan Rudlof
sr at evolgo.de
Mon May 15 05:25:49 UTC 2000
Dear Squeakers,
following changesets introduce a dependents mechanism and a morph which
uses it for Morphic.
Please try them out, but with care!
Greetings,
Stephan
"Change Set: MorphicDependents
Date: 15 May 2000
Author: Stephan Rudlof
Version: 0.1
Introduces a dependency mechanism for Morphs.
Main goal was to have an update mechanism for dependent morphs of a
moved one, mainly by dragging it with the hand.
Preconditions:
- 2.7,
- Morphic,
- backup: many Morphs are recompiled!
Possible drawback:
Performance has to be checked! I don't think there is a significant
penalty, though.
Note:
Only BorderedMorphs are subclasses of MorphWithDependents, which has an
inst var for dependents; so for other morphs clean up of dependents
(breakDependents) has to be made manually.
Enhancements:
Currently only Morph>>position:, >>color: and >>delete: send update
messages. Other messages could be changed similarly.
"
"Change Set: MasterSlaveMorph
Date: 15 May 2000
Author: Stephan Rudlof
A MasterSlaveMorph for flexible updates (by blocks) of dependent morphs.
Precondition: MorphicDependents v0.1
Try:
MasterSlaveMorph example.
MasterSlaveMorph snakeExample: 3.
- Move the master morph (with red square),
- inspect the master morph and change its color,
- delete the master morph (with >>snakeExample)!
"
--
Stephan Rudlof (sr at evolgo.de)
"Genius doesn't work on an assembly line basis.
You can't simply say, 'Today I will be brilliant.'"
-- Kirk, "The Ultimate Computer", stardate 4731.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MorphicDependents.6.cs
Type: application/octet-stream
Size: 5141 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000515/21d5d72f/MorphicDependents.6.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MasterSlaveMorph.7.cs
Type: application/octet-stream
Size: 6555 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000515/21d5d72f/MasterSlaveMorph.7.obj
More information about the Squeak-dev
mailing list
|