• 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: Ernesto Giannotta <email@hidden>
  • Date: Mon, 23 Nov 2015 11:04:54 +0100

Have you tried this (in your Persistent document subclass)?

- (void)close
{

    // we're about to close this document but we have to do some housekeeping
    [self cleanup];
    [super close];

}

> On 23-Nov-2015, at 07:41, Motti Shneor <email@hidden> wrote:
>
> 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.
>
> I do have, of course, validation on saves (Hmmm.... CoreData has, and I added my overrides). But happy-happy-document-architecture doesn't really care.
>
>

Cool Runnings,
Erne.
_______________________________________________

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: AppleEvents: Send port for process has no send right, port=( port:37207/0x9157 rcv:1,send:0,d:0 limit:5) (findOrCreate()/AEMachUtils.cp #526)
  • Previous by thread: Re: Bunch of CoreData based NSDocument questions.
  • Next by thread: Re: Bunch of CoreData based NSDocument questions.
  • Index(es):
    • Date
    • Thread