Sep 8, 2008

(Objective-C) Convert between NSString and CFStringRef

From NSString to CFStringRef:
NSString *test = @"test";
CFStringRef testCF = (CFStringRef) test;


From CFStringRef to NSString:
CFStringRef testCF = "test";
NSString *test = (NSString *) testCF;

1 comment:

Unknown said...

I love your blog. Keep it up.Visit my site too.

n8fan.net

www.n8fan.net