Re: 10.9: Some Async Saving is ON even if you say NO?
Re: 10.9: Some Async Saving is ON even if you say NO?
- Subject: Re: 10.9: Some Async Saving is ON even if you say NO?
- From: Sean McBride <email@hidden>
- Date: Thu, 31 Oct 2013 16:09:01 -0400
- Organization: Rogue Research Inc.
On Thu, 31 Oct 2013 12:54:04 -0700, Jerry Krinock said:
>>> I am surprised because this is actually a Core Data
>>> NSPersistentDocument, and following Apple recommendations I have
>implemented
>>> -[MyDocument canAsynchronouslyWriteToURL:ofType:forSaveOperation:]
>>> to return NO.
>>
>> Where do they recommend that? The NSPersistentDocument class
>reference docs for canAsynchronouslyWriteToURL:ofType:forSaveOperation:
>say "NSPersistentDocument does not support asynchronous save operations.
>You should not override this method”
>
>Hello, Sean. Maybe you read my post too fast. I have overridden it to
>return NO. Just: return NO ;
No, I read it correctly. I was worried that there actually was such a recommendation to override it, because I am not doing such an override, and was worried I needed to.
>> (NSPersistentDocument is infuriating. No support for async save, no
>support for packages/bundles, and no love at all in recent OSes.)
>
>The main thing that keeps me coming back for more Core Data is that it
>does Undo and Redo, which has been trouble-free since I starting using
>GCUndoManager in place of NSUndoManager.
Yeah, I like Core Data too. But to be pedantic, NSPersistentDocument is AppKit, and seems to suffer from being at the edge of two worlds. :(
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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