On Jan 12, 2012, at 4:43 PM, Kyle Sluder <kyle.slu...@gmail.com> wrote:

> On Thu, Jan 12, 2012 at 4:32 PM, Gideon King <gid...@novamind.com> wrote:
>> I have a situation where I need my document's contents on disk, even if it's 
>> a new document with no changes, so I thought I would just make sure that the 
>> document had autosaved before I complete my action on the file, and just 
>> pick up the URL of the last autosave from the document and use that. (I'm 
>> running this on Lion)
>> 
>> 
>> I use:
>> 
>> - 
>> (void)autosaveWithImplicitCancellability:(BOOL)autosavingIsImplicitlyCancellable
>>  completionHandler:(void (^)(NSError *errorOrNil))completionHandler
> 
> This seems sketchy.

And now that I remember to distinguish between Mac and iOS document models, I 
realize I'm the one giving terrible advice.

Don't do what I suggested, since it will update the document's permanent 
fileURL to point to the Application Support directory.

I believe the point about it not being a bug, but a consequence of the design, 
still stands.

--Kyle Sluder_______________________________________________

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