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 (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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to