• 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: scrolling an NSImageView leaves tracks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scrolling an NSImageView leaves tracks


  • Subject: Re: scrolling an NSImageView leaves tracks
  • From: Hamish Allan <email@hidden>
  • Date: Sun, 10 Apr 2005 03:25:17 +0100

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
  • Prev by Date: NSView, scrolling colorWithPatternImage
  • Next by Date: Re: deactivating an NSScrollView
  • Previous by thread: Re: scrolling an NSImageView leaves tracks
  • Next by thread: Re: scrolling an NSImageView leaves tracks
  • Index(es):
    • Date
    • Thread