Warn before quit

Karl Becker karl at karlbecker.com
Wed Oct 16 12:37:01 EDT 2002


On Tuesday, October 15, 2002, at 11:41  PM, Richard Gaskin wrote:

> Karl Becker wrote:
>
>> I'm having a problem with displaying a warning prompt before a user 
>> quits my
>> program.
>>
>> I've put catches to intercept a quit in the following handlers:
>> on closeStackRequest
>> on closeStack
>> in the menuGroup I've created, inside the "Quit" menu option, and I 
>> also
>> intercept "Quit MetaCard" and "Quit Tiger's Eye Pub" (the name of my 
>> app)
>>
>> It seems that my app does show the prompt (twice, actually) when I 
>> click to
>> close the window.  However, when I either:
>> * select Quit Tiger's Eye Pub - or -
>> * hit command-Q
>> the program simply quits, even though I have the script inserted into 
>> my
>> menuGroup to properly catch the "Quit" message.  In fact, it shows 
>> the answer
>> dialog I'm using very briefly before it quits out of the entire 
>> program.  So
>> it's working, just that the answer dialog is not stopping the program 
>> for
>> quitting.
>>
>> How can I get it to actually stop the Quit?
>
> See the shutDownRequest system message.

I've inserted it into my script, but for some reason it's not 
recognizing.  I put it in both the stack's script and the card script, 
but it's not intercepting it at all.  Could those other handlers I have 
be messing with it?

Karl
--
Go Bison!
http://www.karlbecker.com




More information about the metacard mailing list