On Nov 22, 2015, at 22:41 , Motti Shneor <su...@bezeqint.net> wrote: > I wish I knew enough to write my own MyPersistentDocument
The problem is that the way NSDocuments are used is semantically different from the way databases are used, and you *cannot* reconcile the two across all the functions on the NSDocument-based File menu. (This was an old discussion.) > Problem is - the application quits immediately even when there are dirty > documents open!!! the @#$@#$ document "architecture" feels free to quit > because all has been "AutoSaved". not "Saved". I just want the old behavior - > you should not be able to quit with dirty documents. That's all. You are probably falling foul of Sudden Termination: https://developer.apple.com/library/prerelease/watchos/documentation/Cocoa/Reference/Foundation/Classes/NSProcessInfo_Class/#//apple_ref/doc/uid/20000316-SW3 You can try opting out of this completely, or opting out temporarily. Or possibly the change count type I suggested doesn’t cause the opt-out behavior in NSDocument, in which case you could try NSDocumentChangeDone instead. Or possibly the change count has to be updated later. _______________________________________________ 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