Re: FSPathMakeRef() & unicode problem
Re: FSPathMakeRef() & unicode problem
- Subject: Re: FSPathMakeRef() & unicode problem
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 8 Apr 2003 22:08:56 -0700
On Tuesday, April 8, 2003, at 05:35 PM, Lloyd Dupont wrote:
this is a carbon/foundation problem.
I use the NSFileManager to brows through a directory tree.
I get NSString filename of all subdirectory files.
I want to gather info on them using LSCopyItemInfoForRef(), for this I
need an FSRef which I create this way:
FSRef hfile;
OSStatus err;
Boolean isDir;
err = FSPathMakeRef([path cString], &hfile, &isDir);
unfortunately I have a problem if there unicode char in my path ...
Use [path UTF8String] instead and there shouldn't be any more problems,
unless you're dealing with some file system that doesn't support
Unicode or UTF-8 (like HFS).
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://dreamless.home.attbi.com/
"Building the future and keeping the past alive are one and the same
thing." - Metal Gear Solid 2
_______________________________________________
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.