How to convert CFStringRef to NSString?

Posted by papr on Stack Overflow See other posts from Stack Overflow or by papr
Published on 2009-03-12T20:33:29Z Indexed on 2010/04/15 22:03 UTC
Read the original article Hit count: 296

Filed under:
|
|
|
NSString *aNSString;
CFStringRef aCFString;
aCFString = CFStringCreateWithCString(NULL, [aNSString UTF8String], NSUTF8StringEncoding);
aCFString = CFXMLCreateStringByUnescapingEntities(NULL, aCFString, NULL);

How can I get a new NSString from aCFString?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about strings