Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lucasgladding

macrumors 6502
Original poster
Feb 16, 2007
319
1
Waterloo, Ontario
Does anyone have any experience setting up a layer-backed NSView nested inside an NSScrollView? The view is an animated version of an NSOutlineView and works perfectly except for redraw issues on resize of the NSScrollView. I was able to overcome the fading effect associated with large CALayers by using a CAScrollLayer for layer-backing, but the view shifts vertically several pixels while resizing the NSScrollView - up when making smaller and down when making bigger. I can call setNeedsDisplay:, but the view draws shifted first, then corrects itself. The result is a jumpy NSView on resize.

If this doesn't make any sense, I can post a video of the problem. I don't know, however, if the frame rate will be high enough to capture the problem clearly.

If the NSScrollView is the wrong approach here, any suggestions would be appreciated.

Thanks

Luke Gladding
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.