NSWorkspace setIcon:forFile:options: how to make it work correct?
parfeon <[email protected]>
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello everyone. I've spend a lot of time, trying to figure out what is wrong with this method. My goal in my app, I'm creating folder and want set custom icon for it with new size (new for Leopard 512). But when I'm apply it to my folder, there a lot of glitches shown up, some messy transparent and strange color appears. Here example of 256 sized folder icon (till this size, everything is fine): http://www.nabble.com/file/p25980302/foldericon256.jpg and here I'm just enlarged coverflow size to make folder icon 260px width (and now problems start): http://www.nabble.com/file/p25980302/folder-icon-260.jpg Here is the code which I use to attach folder icon: [[NSWorkspace sharedWorkspace] setIcon:[NSImage imageNamed:@"test512.icns" forFile:path options:0]; Help me please, what I'm doing wrong? Or advise another way to reach the goal. Thanks, Regards, Sergey Mamontov -- View this message in context: http://www.nabble.com/NSWorkspace-setIcon%3AforFile%3Aoptions%3A-how-to-make-it-work-correct--tp25980302p25980302.html Sent from the OmniGroup - MacOSX-Dev mailing list archive at Nabble.com.