• 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: Convert NSString to FSRef
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Convert NSString to FSRef (From: "Kevin Dixon" <email@hidden>)
 >Re: Convert NSString to FSRef (From: "Adam R. Maxwell" <email@hidden>)
 >Re: Convert NSString to FSRef (From: Keith Duncan <email@hidden>)

  • Prev by Date: Re: Convert NSString to FSRef
  • Next by Date: AW: [OT?] WWDC
  • Previous by thread: Re: Convert NSString to FSRef
  • Next by thread: Re: Convert NSString to FSRef
  • Index(es):
    • Date
    • Thread