Quit from the OSX-dock
J. Landman Gay
jacque at hyperactivesw.com
Sun Nov 23 21:44:52 EST 2003
On 11/23/03 4:47 PM, R. Hillen wrote:
> Hello list,
>
> if I start a RunRev-standalone on OSX, it appears as an icon in the
> dock and can be quitted from there.
>
> Somebody knows, which message is sent, if I use the dock to quit the
> standalone, so that I can do the final things (like save changed data)
> before the application quits?
I think it sends an AppleEvent. You'd need to write an appleEvent
handler to catch it, like this:
on appleEvent theClass,theID
if theClass is "aevt" and theID is "quit" then
-- do your stuff here
end if
pass appleEvent
end appleEvent
There is more if you look up "appleEvent" in the dictionary.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list