• 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
10.9: Some Async Saving is ON even if you say NO?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: 10.9: Some Async Saving is ON even if you say NO?
      • From: Sean McBride <email@hidden>
    • Re: 10.9: Some Async Saving is ON even if you say NO?
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: Disabling NSOutlineView animations not respected in Mavericks
  • Next by Date: Superimposing NSViews over an SKView
  • Previous by thread: Re: Disabling NSOutlineView animations not respected in Mavericks
  • Next by thread: Re: 10.9: Some Async Saving is ON even if you say NO?
  • Index(es):
    • Date
    • Thread