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: Graham Cox <email@hidden>
- Date: Sun, 23 Feb 2014 11:07:54 +1100
On 22 Feb 2014, at 11:58 pm, email@hidden wrote:
>> There's no one representation of an NSNumber's content.
> I think that this is the foundation of things.
>
> What there is is a reported representation as given by -objCType.
NSNumber's can be slippery buggers, in my experience.
Why are you so determined that you must use NSNumber, rather than your own class? You haven't adequately explained why that isn't a good solution, as it certainly sounds as if it would be, and cut through all the uncertainty and bad fit of NSNumber for this purpose.
--Graham
_______________________________________________
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