Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFStringRef to hexa




On 30 Jun 2006, at 09:56, Alex Ivanov wrote:

Is there a way to convert a CFStringRef which
represents a number in hexadecimal to an actual number?


Two ways:

1. Write you own, it can't be that hard.

2. (and this requires obj-c:)

NSScanner* scanner = [NSScanner scannerWithString:(NSString*) myCFStringRef];
int value;
if ([scanner scanHexInt:&value])
DoSomethingWith(value);



Matt Gough Softchaos Limited _______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >CFStringRef to hexa (From: Alex Ivanov <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.