• 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: Returning a nil float?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Returning a nil float?


  • Subject: Re: Returning a nil float?
  • From: Dave DeLong <email@hidden>
  • Date: Fri, 29 Jan 2010 17:48:51 -0700

I should clarify.  You *can* return nil, but it will be indistinguishable for 0.0f.

Dave

On Jan 29, 2010, at 5:46 PM, Dave DeLong wrote:

> You can't do that.  Instead, return an NSNumber, from which you can deduce that a nil NSNumber is different from an NSNumber with a floatValue of 0.0.
>
> Cheers,
>
> Dave

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >Returning a nil float? (From: Chunk 1978 <email@hidden>)
 >Re: Returning a nil float? (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: Returning a nil float?
  • Next by Date: Re: Returning a nil float?
  • Previous by thread: Re: Returning a nil float?
  • Next by thread: Re: Returning a nil float?
  • Index(es):
    • Date
    • Thread