On Jan 17, 2006, at 2:48 PM, Seth Willits wrote:
> 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:.
--
Seth Willits
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (
Cocoa-dev@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/subscriber%40opensubscriber.com
This email sent to
subscriber@open...
opensubscriber is not affiliated with the authors of this message nor responsible for its content.