Reliable way to do something on shutdown?

Paul D. DeRocco pderocco at ix.netcom.com
Wed Jun 19 02:31:16 EDT 2013


> From: J. Landman Gay
> 
> ShutdownRequest is sent when the user tries to quit. 
> CloseStackRequest 
> is sent when they try to close a window, like when they click on the 
> close box.

Handling closeStack, and calling shutdown if it's the main stack, seems to
solve the problem. Just in case, I wrote the shutdown handler so that if
it's called twice, nothing bad will happen, so that should be safe no matter
how it works under OS X or Linux.

Now, if only someone knew the answer to my hilitedLine question. (Nudge,
nudge.)

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco at ix.netcom.com 





More information about the use-livecode mailing list