July 29, 2018
12:58 p.m.
Hi Peter, I think you have two options: 1. Specialize the Window and use your own delete method to do your additional cleaning. This is what I do in Dr. Geo. 2. Use the WindowClosed announcement from system window to catch the signal from the morph you want to clean Hilaire Le 29/07/2018 à 13:35, Peter Uhnák a écrit :
how can a Morph react to its parent window being closed?
E.g.
Morph subclass: #MyMorph. MyMorph new openInWindow
how can MyMorph cleanup itself on window close?
I thought Morph>>delete would do the trick, but it is not being called.
Thanks, Peter
-- Dr. Geo http://drgeo.eu