• 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: Forcing autosave
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Forcing autosave (From: Gideon King <email@hidden>)
 >Re: Forcing autosave (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Forcing autosave
  • Next by Date: Re: checking if directory is writable
  • Previous by thread: Re: Forcing autosave
  • Next by thread: Messed up UTIs in NSDocument-based application
  • Index(es):
    • Date
    • Thread