Re: NSNumber : method to return pointer to represented value
Re: NSNumber : method to return pointer to represented value
- Subject: Re: NSNumber : method to return pointer to represented value
- From: "email@hidden" <email@hidden>
- Date: Sat, 22 Feb 2014 15:33:18 +0000
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.
Hence NSDecimal -getValue: populates a pointer to a double.
Jonathan
_______________________________________________
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