> I'm trying just to get an image of my document's icon inside my
> app, and I though [NSImage imageNamed:@"DocumentIcon"] might work,
> and although it returns something, when drawing in a view, it
> doesn't draw anything recognizable as part of the icon. (I actually
> just see a gradient shadowy kind of thing on the right side of
> where it should be drawing.)
> Does NSImage handle icns files? How else can I get the icon for my
> document? (NSWorkspace's iconForFileType won't work because the
> file type isn't unique to my application.)
It turns out the value to setSize: wasn't an exact size of one of the
representations and that was causing it to do some funky stuff.
Weirdly enough though, that same size value worked for icons
retrieved via NSWorkspace's iconForFile:.