Announcer question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Announcer question

wernerk
Hi,
in the pharo book, morphs unsubscribe to an announcer in delete for
garbage-collection, but what do i do, when a morph is not explicitely
deleted, but its owner?
i have mypanelmorph that subscribes to an announcer. it has a
tabgroupmorph as its owner, which has a panelmorph as its owner, which
has a systemwindow as its owner, which has a model, that knows
absolutely nothing about mypanelmorph, but occasionally deletes
panelmorph. is there a method in mypanelmorph, where i could put the
unsubscription in, that would be called, when panelmorph will be deleted?
werner