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

Validate NSDocument on Quit


  • Subject: Validate NSDocument on Quit
  • From: Keary Suska <email@hidden>
  • Date: Sun, 05 Oct 2014 08:36:26 -0600

I am trying to prevent a quit in a document-based app when data in a document is invalid. AFAICT when auto save is turned on none of the normal document closing methods are called, and when the app delegate is called, NSDocumentController shows no existing documents. It might also have to do with the "Ask to keep changes" preference. Has anyone figured out how to trap closing to prevent saving possibly invalid data?

TIA,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Validate NSDocument on Quit
      • From: Jonathan Mitchell <email@hidden>
    • Re: Validate NSDocument on Quit
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: A Stack of Editors
  • Next by Date: Re: Validate NSDocument on Quit
  • Previous by thread: Document Based app with SQLite backing store
  • Next by thread: Re: Validate NSDocument on Quit
  • Index(es):
    • Date
    • Thread