• 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
Prevent default alert when quitting app w/ many unsaved docs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Prevent default alert when quitting app w/ many unsaved docs


  • Subject: Prevent default alert when quitting app w/ many unsaved docs
  • From: Ettore Pasquini <email@hidden>
  • Date: Tue, 14 Dec 2004 18:42:47 -0800

When the user quits a document based application that has many unsaved documents, the default Cocoa behavior is to present an alert box saying something like "You have N documents with unsaved changes. Do you want to review these changes before quitting?". The dialog lets you "Discard Changes", "Cancel", or either "Review Changes..." where you'll be guided to the unsaved docs one by one.

Is there a way to prevent this alert to open at all? I would like to code my own logic, and I actually did in applicationShouldTerminate: of my NSApp delegate, but that is called after the default dialog. So basically I get 2 dialogs now.

I know I could find a workaround to open my own dialog only in the cases not handled by the default alert box, but this seems like a situation where there is a standard way of doing things that I'm not getting.

Am I missing something ?
Thanks in advance,

--Ettore

_______________________________________________
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: Prevent default alert when quitting app w/ many unsaved docs
      • From: "Louis C. Sacha" <email@hidden>
  • Prev by Date: Re: NSFilePromisePboardType
  • Next by Date: Re: cross development on Jaguar
  • Previous by thread: Re: NSFilePromisePboardType
  • Next by thread: Re: Prevent default alert when quitting app w/ many unsaved docs
  • Index(es):
    • Date
    • Thread