• 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: 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.

References: 
 >FSPathMakeRef() & unicode problem (From: Lloyd Dupont <email@hidden>)

  • Prev by Date: application version
  • Next by Date: Using icns??
  • Previous by thread: FSPathMakeRef() & unicode problem
  • Next by thread: Re: FSPathMakeRef() & unicode problem
  • Index(es):
    • Date
    • Thread