Re: Convert NSString to FSRef
Re: Convert NSString to FSRef
- Subject: Re: Convert NSString to FSRef
- From: "Adam R. Maxwell" <email@hidden>
- Date: Sat, 15 Mar 2008 12:48:51 -0700
On Mar 15, 2008, at 12:34 PM, Keith Duncan wrote:
-cString has been deprecated for a very long time; it's better to
use UTF8String.
Not all file systems support UTF8, you should use -
fileSystemRepresentation instead for compatability.
For some APIs, but not in this case. The OP is creating a CFString
and explicitly specifying UTF-8 input but passing the result of -
cString, which is generally not UTF-8.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden