• 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: Strange NSFileManager file replacement issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange NSFileManager file replacement issue


  • Subject: Re: Strange NSFileManager file replacement issue
  • From: Steve Christensen <email@hidden>
  • Date: Fri, 19 Aug 2011 13:14:56 -0700

On Aug 19, 2011, at 7:17 AM, Sixten Otto wrote:

> On Thu, Aug 18, 2011 at 10:38 PM, Ken Thomases <email@hidden> wrote:
>
>> Those functions, and the general operation that they perform, require that
>> the files to be exchanged be on the same file system.
>
> If true, that certainly makes that method far less useful in the general
> case than I expected, and really seems restricted to the "saving a new copy
> of an in-memory document and swapping it" case. I really don't want to put
> the in-process download into the Documents tree. (Both because it's
> potentially visible to the user through iTunes, and because
> NSTemporaryDirectory() will be swept up occasionally.)

Is there any reason why you can't put the downloaded file in your app's private cache directory (.../<appdir>/Library/Caches), i.e., what gets returned by NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES)? That should certainly be within the bigger app directory hierarchy, and thus a peer of the app's Documents directory.


_______________________________________________

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

  • Follow-Ups:
    • Re: Strange NSFileManager file replacement issue
      • From: Sixten Otto <email@hidden>
References: 
 >Strange NSFileManager file replacement issue (From: Sixten Otto <email@hidden>)
 >Re: Strange NSFileManager file replacement issue (From: Ken Thomases <email@hidden>)
 >Re: Strange NSFileManager file replacement issue (From: Sixten Otto <email@hidden>)

  • Prev by Date: Re: Looking for sample code to support NSRect resize in a view
  • Next by Date: Crash Reporter for Lion
  • Previous by thread: Re: Strange NSFileManager file replacement issue
  • Next by thread: Re: Strange NSFileManager file replacement issue
  • Index(es):
    • Date
    • Thread