Re: Telling Auto Save, "No, I'm busy now"
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