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: Wed, 27 Apr 2011 12:09:39 -0700
On Apr 27, 2011, at 11:40, Kevin Muldoon wrote:
> NSString *aliasName = @"ANewAliasTo_myFile.png";
...
> 2011-04-27 14:32:46.263 NDAliasesURLProject[3514:10b] And placed the alias here...
> /Users/kevin/Desktop/ANewAliasToMyFile.png
This isn't your code. Look at the alias file name in the log and the file name in your code. That's probably not relevant to your problem, but posting log output is an implicit claim that it comes from the posted code.
> Everything in the code looks right ...
This surely looks wrong:
> if( [[NDAlias aliasWithPath:filePath fromPath:aliasDirectory] writeToFile:aliasName] ) {
That doesn't seem like a sensible value for 'fromPath', and I don't see NDAlias having a documented 'writeToFile' method at all, and (even if it did) shouldn't you be specifying 'aliasPath', not 'aliasName'?
_______________________________________________
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