• 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: Converting OSX Path to a OS9 Path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting OSX Path to a OS9 Path


  • Subject: Re: Converting OSX Path to a OS9 Path
  • From: Sandy Martel <email@hidden>
  • Date: Tue, 7 Jan 2003 11:23:23 -0500

On mardi, janvier 7, 2003, at 11:38 AM, Flemming Bengtsson wrote:

Hi All,

How can you convert an OSX path string contained in a NSString to a OS9
Str255 path string ?


If it's to get a displayable string for the user use this instead:

[NSFileManager displayNameAtPath:(NSString *)path]

If it's to access the file, it's a very bad idea

You will have problem with the length (some path may be longer than 255)
You will have problem with the encoding (one path may have characters in different encoding)
You will have problem with the uniqueness (some path may point to more than one file, when you have more than one volume with the same name)

Sandy.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Converting OSX Path to a OS9 Path (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: Convert hexadecimal NSString (0xff00) to decimal integer?
  • Next by Date: Re: Convert hexadecimal NSString (0xff00) to decimal integer?
  • Previous by thread: Re: Converting OSX Path to a OS9 Path
  • Next by thread: Convert hexadecimal NSString (0xff00) to decimal integer?
  • Index(es):
    • Date
    • Thread