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 20:53:28 +1100
On 23 Feb 2014, at 8:30 pm, email@hidden wrote:
> Therefore the encoded class of the numeric key is essential.
Another solution would be just to use a string, with some encoding scheme of your own device, e.g. append a type code to the constant. Category methods on NSString would allow you to create these easily and extract the original value as its original type. It might be more reliable than bending NSNumber in a similar fashion. Just a thought.
--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