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

FSPathMakeRef() & unicode problem


  • Subject: FSPathMakeRef() & unicode problem
  • From: Lloyd Dupont <email@hidden>
  • Date: Wed, 9 Apr 2003 10:35:23 +1000

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 ?
_______________________________________________
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.

  • Follow-Ups:
    • Re: FSPathMakeRef() & unicode problem
      • From: Nick Zitzmann <email@hidden>
    • Re: FSPathMakeRef() & unicode problem
      • From: Nicholas Riley <email@hidden>
    • Re: FSPathMakeRef() & unicode problem
      • From: Lloyd Dupont <email@hidden>
  • Prev by Date: Re: NSTableView and crashes, what am I doing wrong?
  • Next by Date: baffled
  • Previous by thread: Re: programming the dock icon
  • Next by thread: Re: FSPathMakeRef() & unicode problem
  • Index(es):
    • Date
    • Thread