Re: scrolling an NSImageView leaves tracks
Re: scrolling an NSImageView leaves tracks
- Subject: Re: scrolling an NSImageView leaves tracks
- From: Geoff Levner <email@hidden>
- Date: Sun, 10 Apr 2005 11:36:27 +0200
I tried overriding NSImageView's drawRect: method to draw a larger
rectangle, as you suggested, but that seems to make no difference.
I suspect the problem is with the scrolling mechanism, rather than with
NSImageView, because if I send the NSClipView setCopiesOnScroll:NO, it
works correctly (but slowly).
Geoff
On 10 Apr 2005, at 04:24, Hamish Allan wrote:
I've seen something similar, not with an NSImageView but with a custom
NSView subclass within an NSScrollView. I fixed the behaviour by
drawing marginally (1 pixel) outside of the NSRect asked of me by
drawRect:. Not sure how you would best achieve this with an
NSImageView... subclassing or posing?
Best wishes,
Hamish
On Sat, 9 Apr 2005 21:53:41 +0200, Geoff Levner <email@hidden>
wrote:
I have an NSImageView in an NSScrollView. I can zoom in and out,
scroll, load new images, and everything is fine.
Except for one thing. Sometimes, when a newly loaded image is
initially
framed so that it is clipped by the scroll view, scrolling leaves
tracks (grey vertical or horizontal lines) where previously clipped
portions of the image become visible. Zooming in or out once makes
them go away. Calling the NSClipView's setCopiesOnScroll method with
NO also makes the problem go away, but then, of course, scrolling is
much slower.
Has anybody out there ever encountered this sort of behavior?
_______________________________________________
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