Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 26, 2008, 10:35 AM   #1
lucasgladding
macrumors 6502
 
Join Date: Feb 2007
Location: Waterloo, Ontario
 
see vendor information in user profile
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.

Thanks

Luke Gladding
lucasgladding is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Rotate a NSView and make it's origin point starts from the bottom left corner smokyonion Mac Programming 2 May 25, 2011 01:33 PM
NSClipView inside of NSScrollView locked on top left corner skunkworker Mac Programming 0 Sep 16, 2009 01:18 PM
Coordinates of NSViews inside NSTabView sigjuice Mac Programming 1 Mar 15, 2009 06:25 PM
Text Not Anti-Aliased Inside NSView? Darkroom Mac Programming 8 Dec 10, 2008 07:12 AM
Saving NSView to Bitmap -- Explanation inside slooksterPSV Mac Programming 4 Jul 13, 2006 10:59 AM


All times are GMT -5. The time now is 12:00 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC