• 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: Quincey Morris <email@hidden>
  • Date: Thu, 18 Aug 2011 22:14:24 -0700

On Aug 18, 2011, at 21:24 , Sixten Otto wrote:

> That method returns NO for failure, so I check the error... but it's nil.
> There's nothing there to tell me what the heck is failing. (In fact, when I
> wasn't initializing my error pointer to nil, it was left as a garbage
> pointer, and crashed my app.) My app put the original file there, so
> (presumably) that path is writable. The file manager does return true from
> -fileExistsAtPath: for both files.

a. What version of iOS did this fail on?

b. Can you assert that the receiver of the 'replace…' method is not nil? (If it was nil, the method call would behave exactly as you describe.)

c. Can you show us the actual line of code that does the replacement?


_______________________________________________

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>
    • Re: Strange NSFileManager file replacement issue
      • From: Sixten Otto <email@hidden>
References: 
 >Strange NSFileManager file replacement issue (From: Sixten Otto <email@hidden>)

  • Prev by Date: Strange NSFileManager file replacement issue
  • Next by Date: Re: Strange NSFileManager file replacement issue
  • Previous by thread: Strange NSFileManager file replacement issue
  • Next by thread: Re: Strange NSFileManager file replacement issue
  • Index(es):
    • Date
    • Thread