Are there any Cocoa classes that will help me convert a hex value in a NSString like 0x12FA to a long or NSNumber? It doesn\'t look l
0x12FA
long
NSNumber
See NSScanner's scanHex...: methods. That'll get you the primitive that you can wrap in an NSNumber.