On 24-Sep-08, at 1:47 AM, Nick Zitzmann wrote:


On Sep 23, 2008, at 1:13 PM, chaitanya pandit wrote:

I've been struggling with for quite a while now, what i want to achieve is create an alias of a folder at some location. The alias would also be a folder like we have after creating an alias in the finder. say i have a folder "foo" in "/Users/me/Documents/foo" and i want to programatically create an alias of that folder on my desktop "/ Users/me/Desktop/fooalias"
how can i do that?


You should probably use FSNewAliasFromPath(), but unless you have a really good reason for creating an alias, you should probably create a symbolic link instead.

thanks Nick,
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.

Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to