• 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: False positive on writeToURL:atomically:encoding:error: ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: False positive on writeToURL:atomically:encoding:error: ?


  • Subject: Re: False positive on writeToURL:atomically:encoding:error: ?
  • From: Roland King <email@hidden>
  • Date: Sun, 24 Jun 2012 23:15:24 +0800

No.

On 24 Jun, 2012, at 11:14 PM, Dennis <email@hidden> wrote:

> On Jun 23, 2012, at 10:46 PM, Roland King wrote:
>
>> Yes that is a general statement. You should check the return value of the method and only if it indicates there's an error, check the error object. There is no guarantee that the error object was not set at some point during the method processing, even if that method eventually succeeds, nor that it's forced clear on success.
>
> What if you explicitly set your NSError variable's value to nil immediately before using it? Wouldn't it be safe to trust in that case?

_______________________________________________

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: 
 >False positive on writeToURL:atomically:encoding:error: ? (From: Martin Hewitson <email@hidden>)
 >Re: False positive on writeToURL:atomically:encoding:error: ? (From: Eeyore <email@hidden>)
 >Re: False positive on writeToURL:atomically:encoding:error: ? (From: Martin Hewitson <email@hidden>)
 >Re: False positive on writeToURL:atomically:encoding:error: ? (From: Roland King <email@hidden>)
 >Re: False positive on writeToURL:atomically:encoding:error: ? (From: Dennis <email@hidden>)

  • Prev by Date: Re: False positive on writeToURL:atomically:encoding:error: ?
  • Next by Date: Re: False positive on writeToURL:atomically:encoding:error: ?
  • Previous by thread: Re: False positive on writeToURL:atomically:encoding:error: ?
  • Next by thread: Re: False positive on writeToURL:atomically:encoding:error: ?
  • Index(es):
    • Date
    • Thread