Re: Alias Woes...
Re: Alias Woes...
- Subject: Re: Alias Woes...
- From: Jerry LeVan <email@hidden>
- Date: Tue, 20 Jul 2004 19:41:05 -0400
Gasp!
Anyone have a routine "ready to steal" for this problem?, Please :)
Jerry
On Jul 20, 2004, at 7:31 PM, Greg Robbins wrote:
At 6:52 PM -0400 7/20/04, Jerry LeVan wrote:
Sym links work fine. Is there a solution for aliases?
Convert the path to an URL with NSURL's fileURLWithPath, use
CFURLGetFSRef to get an FSRef for the path, call
FSResolveAliasFileWithMountFlags (with kResolveAliasFileNoUI for flags
unless the target might be on a server) to find what the alias file
really points to, use CFURLCreateFromFSRef to convert the resulting
FSRef to an NSURL, and get the path of that NSURL.
Greg Robbins
_______________________________________________
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.