• 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
Re: Bunch of CoreData based NSDocument questions.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bunch of CoreData based NSDocument questions.


  • Subject: Re: Bunch of CoreData based NSDocument questions.
  • From: Quincey Morris <email@hidden>
  • Date: Sun, 22 Nov 2015 23:23:51 -0800
  • Feedback-id: 167118m:167118agrif8a:167118sTKIFfjZPa:SMTPCORP

On Nov 22, 2015, at 22:41 , Motti Shneor <email@hidden> 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 (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: Bunch of CoreData based NSDocument questions.
      • From: Motti Shneor <email@hidden>
References: 
 >Bunch of CoreData based NSDocument questions. (From: Motti Shneor <email@hidden>)
 >Re: Bunch of CoreData based NSDocument questions. (From: Quincey Morris <email@hidden>)
 >Re: Bunch of CoreData based NSDocument questions. (From: Motti Shneor <email@hidden>)

  • Prev by Date: Re: Bunch of CoreData based NSDocument questions.
  • Next by Date: Re: Bunch of CoreData based NSDocument questions.
  • Previous by thread: Re: Bunch of CoreData based NSDocument questions.
  • Next by thread: Re: Bunch of CoreData based NSDocument questions.
  • Index(es):
    • Date
    • Thread