On Oct 5, 2014, at 7:36 AM, Keary Suska <cocoa-...@esoteritech.com> wrote:
> 
> 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?

This sounds at odds with the fundamental concept of auto-saving, which is that 
your data is more or less always up to date on disk.

Why can’t you write the “invalid” data? It’s the user’s work-in-progress.

--Kyle Sluder

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to