• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Implementing Quit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Implementing Quit (From: Paolo Bertani <email@hidden>)
 >Re: Implementing Quit (From: Mike Abdullah <email@hidden>)
 >Re: Implementing Quit (From: Paolo Bertani <email@hidden>)

  • Prev by Date: RE: Implementing Quit
  • Next by Date: Re: Implementing Quit
  • Previous by thread: RE: Implementing Quit
  • Next by thread: Re: Implementing Quit
  • Index(es):
    • Date
    • Thread