Re: Bunch of CoreData based NSDocument questions.
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