Re: Alias Woes...
Re: Alias Woes...
- Subject: Re: Alias Woes...
- From: Greg Robbins <email@hidden>
- Date: Tue, 20 Jul 2004 16:31:54 -0700
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.