• 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: NSImageView bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImageView bug?


  • Subject: Re: NSImageView bug?
  • From: Michael Heinz <email@hidden>
  • Date: Sat, 8 Oct 2005 19:04:05 -0400

I had that problem bite me big time - in Panther, it's possible to iterate through the pages of a PDF by updating the current page and telling NSImageView to rediplay itself. In Tiger, not only did that stop working, but resizing got weird as well. Nothing I did seemed to convince NSImageView to let go of it's cached version of the image. I ended up writing my own NSView subclass to avoid the caching issue.

On Oct 8, 2005, at 6:51 PM, Scott Harper wrote:

It sounds like another side-effect of an issue I've worked through where, when the NSImageView receives an image, it automatically resizes (scales) caches that scaled image, and uses the cached image for everything. So when you're resizing the view, it's probably using the same (cached) image as i made before, rather than RE-scaling the image for the current size. When you do that by hand, yes it works as it should. I doubt it would be TOO much of a processor hog, since you don't live resize a window whilst doing much of anything else. The solution you came up with seems to be the best one as far as I can tell.

--Scott

_______________________________________________
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: 
 >NSImageView bug? (From: Dario Mèndez Musicò <email@hidden>)
 >Re: NSImageView bug? (From: Andy Armstrong <email@hidden>)
 >Re: NSImageView bug? (From: Dario Mèndez Musicò <email@hidden>)
 >Re: NSImageView bug? (From: Scott Harper <email@hidden>)

  • Prev by Date: Re: NSImageView bug?
  • Next by Date: DiskArbitration - not the right framework for getting mounted drive info?
  • Previous by thread: Re: NSImageView bug?
  • Next by thread: Re: NSImageView bug?
  • Index(es):
    • Date
    • Thread