• 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: Sixten Otto <email@hidden>
  • Date: Fri, 19 Aug 2011 14:22:21 -0700

On Fri, Aug 19, 2011 at 1:14 PM, Steve Christensen <email@hidden> wrote:

> 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.
>

Can't? No. My preference for NSTemporaryDirectory() was mainly the notion
that I had help from the OS in clearing out any old partial downloads that
whatever weird circumstances might have orphaned.

But I'm not sure that it'd matter. Even when I moved the file from there to
the NSItemReplacementDirectory given by the file manager,
-replaceItemAtURL:... was still behaving identically. (See my previous
message for the details.)

Sixten
_______________________________________________

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: 
 >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>)
 >Re: Strange NSFileManager file replacement issue (From: Steve Christensen <email@hidden>)

  • Prev by Date: Re: How do you create a QTMovieView programmatically?
  • Next by Date: Re: Strange NSFileManager file replacement issue
  • Previous by thread: Re: Strange NSFileManager file replacement issue
  • Next by thread: SKPaymentTransaction has no receiptData property for Mac In App Purchase
  • Index(es):
    • Date
    • Thread