• 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, caching and interpolation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage, caching and interpolation


  • Subject: Re: NSImage, caching and interpolation
  • From: Robert Clair <email@hidden>
  • Date: Thu, 23 Mar 2006 22:42:07 -0500

I've always found the behavior of NSImage to range the full gamut from undocumented to inexplicable. The only way I ever figured anything out was to put in some code or use the debugger to examine the number and type of representations the NSImage had at every step of the way.

I, too, would have thought that it would respect the interpolation hint and then cache the result. But if it isn't doing it, then you probably have to draw the original image to another NSImage with the interpolation hint and then draw the down-sampled image to the screen (which will cause its NSBitmapImageRep to be replaced with a NSCachedImageRep unless you tell it otherwise).


.....Bob _______________________________________________ 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
  • Prev by Date: NSImage, caching and interpolation
  • Next by Date: Re: Source files - subclassing a nstableview
  • Previous by thread: Re: NSImage, caching and interpolation
  • Next by thread: Smart Lists : another way to explore...
  • Index(es):
    • Date
    • Thread