• 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: FSPathMakeRef() & unicode problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >FSPathMakeRef() & unicode problem (From: Lloyd Dupont <email@hidden>)

  • Prev by Date: Re: HowTo: server
  • Next by Date: Re: NSTableView and crashes, what am I doing wrong?
  • Previous by thread: Re: FSPathMakeRef() & unicode problem
  • Next by thread: baffled
  • Index(es):
    • Date
    • Thread