• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting list-size (16 x 16) document icon for list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Getting list-size (16 x 16) document icon for list (From: Matt Neuburg <email@hidden>)
 >Re: Getting list-size (16 x 16) document icon for list (From: Dirk van Oosterbosch <email@hidden>)
 >Re: Getting list-size (16 x 16) document icon for list (From: Ryan Stevens <email@hidden>)

  • Prev by Date: Re: Getting list-size (16 x 16) document icon for list
  • Next by Date: Re: Completing a sound before continuing on
  • Previous by thread: Re: Getting list-size (16 x 16) document icon for list
  • Next by thread: Problem with NSObjectController key path
  • Index(es):
    • Date
    • Thread