Re: Obtaining a value from a hex representation
Re: Obtaining a value from a hex representation
- Subject: Re: Obtaining a value from a hex representation
- From: Jens Alfke <email@hidden>
- Date: Fri, 08 Jan 2016 14:17:31 -0800
> On Jan 8, 2016, at 1:58 PM, Carl Hoefs <email@hidden> wrote:
>
> A user enters the hexadecimal representation of a number like "0x31C8FD" into a text field. The intValue of such strings is 0. Is there a Cocoa method (like .hexValue) to convert the hex representation string into a value?
-[NSScanner scanHexInt:].
—Jens
_______________________________________________
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