[TxMt] tm_dialog: How to catch the window's close button?
bibiko at eva.mpg.de
Wed Aug 13 08:17:16 UTC 2008
if I'm using tm_dialog showing a NIB with enabled close button (red
button), how can a script controlling the NIB be notified about that
E.g. the GetBundles script: It makes usages of some threads. If the
user closes that window these threads should be killed safely. I only
can do this by defining a separate button sending this event to the
script and disabling the red close button.
I do not know whether this would be a way but maybe one can overwrite
the 'close' method within tm_dialog which sends a message to stdout
before calling super::close.
More information about the textmate