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 s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ 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