Re: FSPathMakeRef() & unicode problem
Re: FSPathMakeRef() & unicode problem
- Subject: Re: FSPathMakeRef() & unicode problem
- From: Lloyd Dupont <email@hidden>
- Date: Wed, 9 Apr 2003 14:07:28 +1000
solve it my self, no worry ...
fileSystemRepresentation is the way to go (instead of cString)
On Wednesday, April 9, 2003, at 10:35 AM, 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 ...
>
does any of you have idea how to create a FSRef from a
>
NSString/CFStringRef ?
>
_______________________________________________
>
darwin-userlevel mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/darwin-userlevel
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
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.