On Jan 8, 2016, at 13:58 , Carl Hoefs <[email protected]> wrote:
> 
> Is there a Cocoa method (like .hexValue) to convert the hex representation 
> string into a value?

There are the ‘scanHex…’ methods in NSScanner. It’s a bit annoying to set up, 
but if you packaged it as a function it wouldn’t be bad. OTOH, if you go to 
that trouble, you may as well just examine the characters directly, assuming 
you just need ASCII digits.

_______________________________________________

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