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.
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.
精彩评论