|Mar 26, 2008, 10:35 AM||#1|
Layer-backed NSView inside NSScrollView
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.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Reset Flipped NSScrollView||abcdefg12345||Mac Programming||2||May 8, 2014 12:44 AM|
|Custom NSView with subview of NSSplitView||ArtOfWarfare||Mac Programming||3||Aug 20, 2013 05:16 AM|
|Resolved: Trying to subclass NSView||Hans Kamp||Mac Programming||9||Mar 25, 2013 04:43 PM|
|NSView and NSBezierPath - modelling free fall of an object||moray95||Mac Programming||0||Mar 7, 2013 09:53 AM|
|NSScrollView: copy on scroll ineffective.||jeanlain||Mac Programming||2||Aug 24, 2012 12:31 PM|
All times are GMT -5. The time now is 03:35 PM.