• 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
Checking for nil-return
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Checking for nil-return


  • Subject: Checking for nil-return
  • From: Remco Poelstra <email@hidden>
  • Date: Tue, 05 Oct 2010 16:07:56 +0200

Hi,

I'm cleaning up my code and I'm wondering about constructs like the next one:
[NSNumber numberWithUnsignedChar:i]
The documentation does not say it can return nil on failure, but does that mean it simply will never fail? What if there is no memory left?


Kind regards,

Remco Poelstra
_______________________________________________

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: Checking for nil-return
      • From: Greg Parker <email@hidden>
    • Re: Checking for nil-return
      • From: Dave DeLong <email@hidden>
  • Prev by Date: Re: Confused about floats
  • Next by Date: Re: Checking for nil-return
  • Previous by thread: Re: Unable to play a .mp3 file directly using QTMovie
  • Next by thread: Re: Checking for nil-return
  • Index(es):
    • Date
    • Thread