10.9: Some Async Saving is ON even if you say NO?
10.9: Some Async Saving is ON even if you say NO?
- Subject: 10.9: Some Async Saving is ON even if you say NO?
- From: Jerry Krinock <email@hidden>
- Date: Wed, 30 Oct 2013 16:00:23 -0700
In the giant stack that implements document saving in Cocoa,
-[NSDocument saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo:]
invokes
-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]
Preliminary tests indicate that, in 10.9, the first method there is returning before the second one is invoked, and I think this was not the case in 10.8.
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.
I don’t remember any mention of this change in any of the 2013 WWDC Videos, and there is no mention of it in the 10.9 AppKit release notes. Is there somewhere else I could read about this, and Apple’s recommendations before I do something the hard/stupid way?
Unfortunately, that will need to be soon because it seems this change has caused a bug in my transient Helper tool which modifies documents: The tool exits before the changes are saved to the disk :(
Thanks,
Jerry Krinock
_______________________________________________
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