• 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
Re: Telling Auto Save, "No, I'm busy now"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Telling Auto Save, "No, I'm busy now"


  • Subject: Re: Telling Auto Save, "No, I'm busy now"
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 30 Jul 2011 21:45:56 -0700

On 2011 Jul 30, at 20:12, Quincey Morris wrote:

> I can't help thinking that there was a (brief) section about this in the 2011 WWDC session video that I watched. "If you don't want to be interrupted by an Auto Save, ...". If you haven't watched this video, it might be worth spending the 50 minutes it takes, to see if there's anything in there that would help.

Thank you, Quincey.  I watched that a few weeks ago, and studied the part on Auto Save carefully.  I think that what you are recalling is the ability to cancel an Auto Save after it is started, by returning NO in -writeToURL:ofType:error:.  What I want to do is at a higher level – and simpler – which is to prevent the Auto Save from beginning in the first place.

Upon reviewing the slides one more time, I noticed that they recommend returning the same NSCocoaErrorDomain/NSUserCancelledError in -writeToURL:ofType:error: that I am now returning in -saveToURL:ofType:forSaveOperation:completionHandler:.

So, I feel better about my code now.  I'm doing what they recommend, but in a higher-level method, to achieve a higher-level result.

_______________________________________________

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: Telling Auto Save, "No, I'm busy now"
      • From: Jens Alfke <email@hidden>
References: 
 >Telling Auto Save, "No, I'm busy now" (From: Jerry Krinock <email@hidden>)
 >Re: Telling Auto Save, "No, I'm busy now" (From: email@hidden)
 >Re: Telling Auto Save, "No, I'm busy now" (From: Jerry Krinock <email@hidden>)
 >Re: Telling Auto Save, "No, I'm busy now" (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Ticker tape display
  • Next by Date: Re: Release build throw "unrecognized selector sent to instance" for a category method
  • Previous by thread: Re: Telling Auto Save, "No, I'm busy now"
  • Next by thread: Re: Telling Auto Save, "No, I'm busy now"
  • Index(es):
    • Date
    • Thread