On Jan 08, 2016, at 03:58 PM, Carl Hoefs <[email protected]> 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?

Either use NSScanner or strtol if you have char* (or strtoll if it's longer 
than 8 hex chars).
Sent from iCloud's ridiculous UI, so, sorry about the formatting

 
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to