Re: Creating alias programatically
Re: Creating alias programatically
- Subject: Re: Creating alias programatically
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 23 Sep 2008 14:39:00 -0600
On Sep 23, 2008, at 2:32 PM, chaitanya pandit wrote:
I tried using symbolic link, but if the target file is moved, the
link fails, just curious to know of any reasons i should avoid
creating aliases?
What i need is the link should work even if the target is moved.
Because aliases are only resolved by some Carbon and AppKit methods.
Foundation, CoreFoundation, and C library functions like fopen() won't
resolve aliases, but will resolve symbolic links. If this is important
to you, then you should use symbolic links instead of aliases. If not,
then go ahead and use aliases.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden