Re: NSImageView bug?
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