Aug. 7, 2018
6:57 a.m.
Thank you Henrik, #outOfWorld: was the best solution to me, as I can use it even when I don't control the window/container the morph is embedded in. Peter On Sun, Jul 29, 2018 at 10:16 PM, Henrik-Nergaard <draagren@outlook.com> wrote:
Hi Peter,
There are two methods which can be used for this purpose. #outOfWorld: #announceDeleted
Both are called recursively down the morph tree from the window.
If you need to stop the window or provide a dialog then you should create a subclass of Model and use that to keep references to things that need cleanup and control the closing and other events.
Best regards, Henrik
-- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html