• 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
Implementing Quit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Implementing Quit


  • Subject: Implementing Quit
  • From: Paolo Bertani <email@hidden>
  • Date: Fri, 12 May 2006 12:01:44 +0200

I have implemented NSApplication delegate applicationShouldTerminate:

If there is no need to save changes it returns YES and the app quits.

Otherwise it runs a "do you want to save?" sheet and returns NO.

If the user dismiss the sheet selecting "Don't save" or "Save" how do I quit instantaneously the application?

BTW: The app. is single window and I don't have a document controller.

Thank you.

_______________________________________________
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


  • Follow-Ups:
    • Re: Implementing Quit
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Converting an HTML source string to a readable string
  • Next by Date: Re: NSSpellServer problem (``Couldn\'t contact Spell Server\'\')
  • Previous by thread: Re: vertical list of views
  • Next by thread: Re: Implementing Quit
  • Index(es):
    • Date
    • Thread