[squeak-dev] Execute code when a Morph is destroyed

Séverin Lemaignan skadge at gmail.com
Tue Jan 6 19:39:47 UTC 2009


I would like to execute some code (closing a serial port) when a morph
is destroyed by an user (either by clicking on the cross or by
drag&dropping the morph to the bin). Do you know how to do that?

As a bonus question, is it possible to detect, on the contrary, when a
morph is restored from the bin (to reestablish the communication) ?

Thank you!

More information about the Squeak-dev mailing list