• 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: NSNumber : method to return pointer to represented value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNumber : method to return pointer to represented value


  • Subject: Re: NSNumber : method to return pointer to represented value
  • From: Ken Thomases <email@hidden>
  • Date: Sat, 22 Feb 2014 09:43:11 -0600

On Feb 22, 2014, at 9:33 AM, email@hidden wrote:

> On 22 Feb 2014, at 14:27, Jonathan Hull <email@hidden> wrote:
>
>> I think the main objection everyone has is that they believe (as did I) that -getValue: is actually returning the internal representation of the object.
>
> That is a very pertinent point that we haven’t mentioned.
> -getValue: populates a pointer to a type matching -objCType.

But there's no guarantee about what that type is.  There's no guarantee that it's a scalar rather than a structure, say.  There's no guarantee that a given class always uses the same type, even for the same logical value.

> Hence NSDecimal -getValue: populates a pointer to a double.

Not necessarily.  That's my point.

Regards,
Ken


_______________________________________________

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: NSNumber : method to return pointer to represented value
      • From: Ken Thomases <email@hidden>
References: 
 >NSNumber : method to return pointer to represented value (From: "email@hidden" <email@hidden>)
 >Re: NSNumber : method to return pointer to represented value (From: Fritz Anderson <email@hidden>)
 >Re: NSNumber : method to return pointer to represented value (From: "email@hidden" <email@hidden>)
 >Re: NSNumber : method to return pointer to represented value (From: Ken Thomases <email@hidden>)
 >Re: NSNumber : method to return pointer to represented value (From: "email@hidden" <email@hidden>)
 >Re: NSNumber : method to return pointer to represented value (From: Ken Thomases <email@hidden>)
 >Re: NSNumber : method to return pointer to represented value (From: Jonathan Hull <email@hidden>)
 >Re: NSNumber : method to return pointer to represented value (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: NSNumber : method to return pointer to represented value
  • Next by Date: Re: NSNumber : method to return pointer to represented value
  • Previous by thread: Re: NSNumber : method to return pointer to represented value
  • Next by thread: Re: NSNumber : method to return pointer to represented value
  • Index(es):
    • Date
    • Thread