• 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: Can't delete file on device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't delete file on device


  • Subject: Re: Can't delete file on device
  • From: Mike Abdullah <email@hidden>
  • Date: Wed, 28 Mar 2012 00:08:09 +0100

On 27 Mar 2012, at 22:23, Rick Mann wrote:

>> There are a couple other issues:
>>
>> 1) You shouldn't handle errors by testing (err != nil).  This might work
>> (since you initialized err to nil) assuming that removeItemAtURL: isn't
>> fiddling with err anyway, but it's not guaranteed.  The preferred
>> approach is to test the return value of removeItemAtURL: (it returns
>> BOOL for a reason!) and examine err iff the method returns NO.
>
> Okay, I made that change, but it seems blatantly incorrect to create an error return if it is also going to return true.

http://weblog.bignerdranch.com/?p=360
_______________________________________________

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: 
 >Can't delete file on device (From: Rick Mann <email@hidden>)
 >Re: Can't delete file on device (From: Mike Abdullah <email@hidden>)
 >Re: Can't delete file on device (From: Roland King <email@hidden>)
 >Re: Can't delete file on device (From: Rick Mann <email@hidden>)
 >Re: Can't delete file on device (From: Mike Abdullah <email@hidden>)
 >Re: Can't delete file on device (From: Rick Mann <email@hidden>)
 >Re: Can't delete file on device (From: Conrad Shultz <email@hidden>)
 >Re: Can't delete file on device (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Can't delete file on device
  • Next by Date: Is there a list solely for ObjC/compiler language issues?
  • Previous by thread: Re: Can't delete file on device
  • Next by thread: Re: Can't delete file on device
  • Index(es):
    • Date
    • Thread