• 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: Referring to file by Alias ^or^ path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Referring to file by Alias ^or^ path


  • Subject: Re: Referring to file by Alias ^or^ path
  • From: Michael Ash <email@hidden>
  • Date: Tue, 2 Jun 2009 22:22:51 -0400

On Tue, Jun 2, 2009 at 7:51 PM, Nick Zitzmann <email@hidden> wrote:
>
> On Jun 2, 2009, at 5:18 PM, Stephen J. Butler wrote:
>
>> This should be [path fileSystemRepresentation]; Yes, this is UTF-8,
>> but IIRC it puts the string in a certain normalized form before UTF-8
>> encoding it.
>
>
> No, it returns a UTF-8 string. The reason why you should use
> -fileSystemRepresentation is so your program won't break if a different
> encoding is used to access file systems in a future version of the OS.

There's no reason for the "no" there. It returns a UTF-8 string, yes,
but after normalizing the Unicode to the kernel's preferred form.

This step is unnecessary and pointless (although it was useful on
really old OS X versions where the kernel's normalization routines
didn't always handle everything correctly) but it is there last I
checked....

Mike
_______________________________________________

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

  • Follow-Ups:
    • Re: Referring to file by Alias ^or^ path
      • From: Kyle Sluder <email@hidden>
References: 
 >Referring to file by Alias ^or^ path (From: Jerry Krinock <email@hidden>)
 >Re: Referring to file by Alias ^or^ path (From: James Walker <email@hidden>)
 >Re: Referring to file by Alias ^or^ path (From: Jerry Krinock <email@hidden>)
 >Re: Referring to file by Alias ^or^ path (From: "Stephen J. Butler" <email@hidden>)
 >Re: Referring to file by Alias ^or^ path (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: How determine if file is in Trash, given Path or Alias
  • Next by Date: Re: Referring to file by Alias ^or^ path
  • Previous by thread: Re: Referring to file by Alias ^or^ path
  • Next by thread: Re: Referring to file by Alias ^or^ path
  • Index(es):
    • Date
    • Thread