Re: [Cocoa] How convert ":Developer:Private:jam" into a path POSIX-style
Re: [Cocoa] How convert ":Developer:Private:jam" into a path POSIX-style
- Subject: Re: [Cocoa] How convert ":Developer:Private:jam" into a path POSIX-style
- From: Rosyna <email@hidden>
- Date: Sat, 21 Apr 2007 18:33:58 -0700
It depends solely on where he is getting the path from. He never
mentioned the source of said path. If it is a C string, it could be
UTF-8, MacRoman, MacJapanese, whatever. It depends where he got the
path from.
Ack, at 4/20/07, Stefan Werner said:
The second line should read:
CFStringRef urlString = CFStringWithCString(kCFAllocatorDefault,
path, kCFStringEncodingMacRoman);
and then you must later release it with CFRelease(urlString);
Replace the kCFStringEncodingMacRoman with the proper encoding if
your string is not MacRoman encoded. But in general, most if not all
Mac OS functions that deal with HFS Paths use MacRoman encoding on
Western versions of the OS.
--
Sincerely,
Rosyna Keller
Technical Support/Carbon troll/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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