Convert NSString to CFURLRef

Posted by carloe on Stack Overflow See other posts from Stack Overflow or by carloe
Published on 2010-04-10T18:36:30Z Indexed on 2010/04/10 18:43 UTC
Read the original article Hit count: 878

Filed under:
|
|

How can I convert a NSString that contains an absolute path to a file to a CFURLRef? I tried CFURLRef myFileUrl = CFURLCreateWithString(kCFAllocatorDefault, (CFStringRef)filePathString, NULL); and about half a dozend other ways.

© Stack Overflow or respective owner

Related posts about nsstring

Related posts about conversion