views:

6

answers:

1

I have this line:

NSWorkspace.sharedWorkspace().setIcon_forFile_options_(unicode(icon),unicode(target),0)

Why does it give that error and how do I fix it?

Thank you.

+1  A: 

I misread the documentation. I need to do this:

NSWorkspace.sharedWorkspace().setIcon_forFile_options_(NSImage.alloc().initWithContentsOfFile_(icon),target,0)

Unfortunately the error is what confused me.

Matthew Mitchell