• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Cocoa] How convert ":Developer:Private:jam" into a path POSIX-style
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >[Cocoa] How convert ":Developer:Private:jam" into a path POSIX-style (From: "donaldo donaldo" <email@hidden>)
 >Re: [Cocoa] How convert ":Developer:Private:jam" into a path POSIX-style (From: "donaldo donaldo" <email@hidden>)
 >Re: [Cocoa] How convert ":Developer:Private:jam" into a path POSIX-style (From: Stefan Werner <email@hidden>)

  • Prev by Date: Re: NSSound + NSBundle
  • Next by Date: Re: NSSound + NSBundle
  • Previous by thread: Re: [Cocoa] How convert ":Developer:Private:jam" into a path POSIX-style
  • Next by thread: CG related warnings when loading Nib
  • Index(es):
    • Date
    • Thread