Re: Implementing Quit
Re: Implementing Quit
- Subject: Re: Implementing Quit
- From: "Jordan Krushen" <email@hidden>
- Date: Fri, 12 May 2006 12:07:00 -0700
On 5/12/06, Paolo Bertani <email@hidden> wrote:
But this invokes the delegate again...
I have set up a flag to know if it is the second time the delegate is
invoked
(first time: user select quit,
second time: the user don't want to save and the [NSApp
terminate:self] is called)
Check the docs for applicationShouldTerminate: again. Notice the link
to the Constants section, which describes the values you can return to
terminate now, later, etc. If you reply with NSTerminateLater, you
should call replyToApplicationShouldTerminate: when you're finished
doing whatever it is you have to do before quitting.
J.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden