On Jan 8, 2016, at 3:16 PM, Steve Mills <sjmi...@mac.com> wrote:
> 
> 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
> 
Hadn't thought to use NSScanner, though it appears a bit overkill. 

strtoll() works fine. (Note: Hex values greater than 7FFFFFFF require the use 
of strtoll(). strtol() returns -1 in such cases.)

Guess I'll create a NSString category so I can have a -hexValue method after 
all. 

Thanks Steve, Quincey, Jens!
-Carl


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to