Re: Getting list-size (16 x 16) document icon for list
Re: Getting list-size (16 x 16) document icon for list
- Subject: Re: Getting list-size (16 x 16) document icon for list
- From: Dirk van Oosterbosch <email@hidden>
- Date: Sun, 17 Apr 2005 17:46:16 +0200
On 17-apr-05, at 16:57, Ryan Stevens wrote:
Have you checked the -representations?
Aha!
(How could I forget an NSImage is not just matrix of pixels, but really a nice object that can display or give different things for different occassions? ... sorry)
And why I wasn't seeing the correct 16x16 member was because my NSImageView's frameSize just wasn't exactly 16x16 pixels. Duh.
Now this line
[myImageView setImage:[[NSWorkspace sharedWorkspace] iconForFile:myFile]];
does all the work magically. (provided that
myImageView is scaling to fit and has a frameSize of 16x16).
Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden