Re: Warn before quit - anyone?

2002-10-22 Thread Herve Proudhon
Does anyone else have any ideas as to why my stack would not be pausing
when I want to display a dialog before a program quits once someone
selects Quit from the menu?  This is on OS X, too.  I have not been
able to try it on OS 9 or Windows, though I'm guessing it's the same.

Thanks
Karl


I have the same problem, but only on MacOsX with MetacardCarbonMach-O.

How to trap (or to delete, or disable) the Quit MyProgram in the menu 
which is automatically created  when building an application ?
It is possible to handle the About MyProgram by creating a dummy 
About MyProgram in the Help menu.
Is there such a thing for Quit ?

Regards,

Herve Proudhon

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Warn before quit - anyone?

2002-10-21 Thread Karl Becker
Does anyone else have any ideas as to why my stack would not be pausing 
when I want to display a dialog before a program quits once someone 
selects Quit from the menu?  This is on OS X, too.  I have not been 
able to try it on OS 9 or Windows, though I'm guessing it's the same.

Thanks
Karl


On Friday, October 18, 2002, at 01:08  AM, Karl Becker wrote:


On Wednesday, October 16, 2002, at 01:34  PM, [EMAIL PROTECTED] wrote:



Re:  Karl Becker's problem:


Have you checked for stray Lock Messages commands, perhaps in a 
subroutine
that's being called?

Nope, I just searched through my entire script, the only things I lock 
is the screen occasionally, but even that I don't do near where I  quit.

I created a new stack, and made a quick script in the stack script of:
on shutDownRequest
--display an answer dialog, quit if the user clicks Don't Quit
end shutDownRequest
and when I hit command-Q, it did not pop up.  Is my copy of MetaCard 
being weird or something?

Karl


David Epstein


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

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



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

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



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

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard