if( [[NDAlias aliasWithPath:filePath fromPath:aliasDirectory] writeToFile:aliasName] ) {

Just following the example provided by creator of NDAlias. Yes, seems weird to me too. I'd post his example code but it's not very compact. I rewrote it for this forum so it could be understood easily.

On Apr 27, 2011, at 3:09 PM, Quincey Morris wrote:

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 (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 arch...@mail-archive.com

Reply via email to