Re: Forcing autosave
Re: Forcing autosave
- Subject: Re: Forcing autosave
- From: Kyle Sluder <email@hidden>
- Date: Thu, 12 Jan 2012 18:15:43 -0800
On Jan 12, 2012, at 4:43 PM, Kyle Sluder <email@hidden> wrote:
> On Thu, Jan 12, 2012 at 4:32 PM, Gideon King <email@hidden> 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 (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