Croquet/Morphic question
Joshua 'Schwa' Gargus
schwa at cc.gatech.edu
Fri May 16 06:16:45 UTC 2003
Hi,
Is there a way to notify morphs that someone in their owner chain has
been deleted/collapsed? The reason I ask is that I want to make a
morph that contains a (subclass of) TeapotMorph. However, when I
delete or collapse my prototype, the TeapotMorph is not notified and
its glx continues to render on the screen. I can imagine that there
might be other non-OpenGL situations where a submorph might want some
notification.
One way I see is to have a deleted/collapsed morph call #triggerEvent:
on itself and the entire tree below it. Morphs that care could
register a response with themselves. Another way would be to just
call #triggerEvent: on the deleted/collapsed morph, and have
interested submorphs register with it. This has a problem: if the
widget is dropped into a PasteUpMorph which is then deleted, the
interested morph won't be notified.
Any other ideas?
Thanks,
Joshua
More information about the Squeak-dev
mailing list
|