Re: Unicode filename and FSPathMakeRef
Re: Unicode filename and FSPathMakeRef
- Subject: Re: Unicode filename and FSPathMakeRef
- From: Douglas Davidson <email@hidden>
- Date: Thu, 3 Jan 2002 10:39:12 -0800
On Thursday, January 3, 2002, at 10:09 AM, Norbert Heger wrote:
However, if we are not supposed to use "hard-coded UTF-8", what's the
proper
way to convert a fileSystemRepresentation back to an NSString? It seems
we
need some kind of -[NSString stringWithFileSystemRepresentation:]
method...
stringWithFileSystemRepresentation: exists, but it is an NSFileManager
rather than an NSString method. Use that. For consistency, you could
use NSFileManager's fileSystemRepresentationWithPath: to go the other
way, too, if you like. These are the basic methods, and they are under
NSFileManager because NSFileManager is the authority on dealing with
filesystems.
Douglas Davidson