Re: Alias Woes...
Re: Alias Woes...
- Subject: Re: Alias Woes...
- From: Brian Bergstrand <email@hidden>
- Date: Tue, 20 Jul 2004 22:39:04 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have a Protocol addition to NSFileManger that will handle this for
you:
<
http://cvs.sourceforge.net/viewcvs.py/changedesktop/Utilities/
NSFileManager+Alias.m?rev=1.2&view=auto>
HTH.
On Jul 20, 2004, at 6:41 PM, Jerry LeVan wrote:
>
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
>
Brian Bergstrand <
http://www.bergstrand.org/brian/>, AIM: triryche206
PGP Key: <
http://www.bergstrand.org/brian/misc/public_key.txt>
design, v.: What you regret not doing later on.
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1
iQA+AwUBQP3XUXnR2Fu2x7aiEQK5AACdFPw/Kd8/YlyIHwnlqZn8bYP/07IAmOEP
TglL0gjDE7FLznGqSX9F7XQ=
=m6R3
-----END PGP SIGNATURE-----
_______________________________________________
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.