Search code examples
objective-cmacosnstableviewnsscrollview

Elastic Scrolling Causes Banding in Mac App


I've implemented a NSScrollView with vertical elastic scrolling on, but there seems to be an odd banding effect when the elastic scrolling actually happens.

This happens regardless of what scrolls past the edge, be it a WebView or a NSTableView (both of which I have in scrollviews that cause banding when elasticity is turned on).

What could be causing this?

Banding


Solution

  • When I was doing my drawing, I was using dirtyRect instead of [self bounds].

    dirtyRect (as I've just found out) is NOT for filling your rectangle.