Re: Aliases with NDAlias not appearing where I tell them to be.
Re: Aliases with NDAlias not appearing where I tell them to be.
- Subject: Re: Aliases with NDAlias not appearing where I tell them to be.
- From: Quincey Morris <email@hidden>
- Date: Thu, 28 Apr 2011 11:21:43 -0700
On Apr 28, 2011, at 11:05, Kevin Muldoon wrote:
> if( [[NDAlias aliasWithPath:aFilePath fromPath:NSHomeDirectory()] writeToFile:aliasFilePath] )
Yes, but this isn't what you did, or what you wanted. The sample code is intentionally putting the created alias file in the *current* directory, which is why 'aliasFilePath' specifies no explicit directory. You want to put it in a different place (the desktop), but you passed 'aliasName' instead of 'aliasFilePath' for that parameter.
_______________________________________________
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