• 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: NSImage with multiple representation sizes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage with multiple representation sizes


  • Subject: Re: NSImage with multiple representation sizes
  • From: Rob Keniger <email@hidden>
  • Date: Wed, 9 Sep 2009 11:22:38 +1000


On 09/09/2009, at 6:20 AM, Ken Ferry wrote:

On 10.6 and later, yes, you can count on it choosing 16x16 pixel
representation. We're not looking at resolution anymore, only number of
pixels in rep vs number of pixels to be filled.


I'm pretty sure it would on previous OSes too, but not 100% positive.


It works this way on 10.5. It's easy to test, dump a multi-resolution TIFF into an NSImageView set to resize with the window and scale the window up and down. If the TIFF contains different images at each resolution (say the number 16 for a 16x16px rep, and the number 128 for a 128x128px rep) then you'll see the various representations drawn as you resize.

--
Rob Keniger



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSImage with multiple representation sizes (From: Benjamin Rister <email@hidden>)
 >Re: NSImage with multiple representation sizes (From: Ken Ferry <email@hidden>)
 >Re: NSImage with multiple representation sizes (From: Benjamin Rister <email@hidden>)
 >Re: NSImage with multiple representation sizes (From: Ken Ferry <email@hidden>)
 >Re: NSImage with multiple representation sizes (From: Benjamin Rister <email@hidden>)
 >Re: NSImage with multiple representation sizes (From: Ken Ferry <email@hidden>)

  • Prev by Date: Core Data fetch with to-many relationship
  • Next by Date: Re: usb notification
  • Previous by thread: Re: NSImage with multiple representation sizes
  • Next by thread: NSURLDownload delegate methods seperate thread
  • Index(es):
    • Date
    • Thread