FROM : Lucas Gladding
DATE : Mon Mar 24 04:51:49 2008
I have been working with a layer-backed view hierarchy nested in an
NSScrollView. The layer-backed view is backed by a CAScrollLayer (to
get around the texture size limitation that causes the fade in effect
on the layer-backed view). If I am scrolled to the top of the
documentView in the NSScrollView, however, the view jumps by several
pixels while resizing the NSScrollView. If setNeedsDisplay: is
called, everything redraws and displays as intended. The problem is,
the view always jumps before the setNeedsDisplay is called and the
view always skips.
My question: does anyone have any recommendations about how to set up
a large layer-backed view nested inside an NSScrollView (or something
else to accomplish the same effect)? Also, has anyone else
experienced the aforementioned problem?
If necessary, I can post a screencast showing the problem. Hopefully
the problem mentioned above makes sense.
Thanks for your help
Luke Gladding
DATE : Mon Mar 24 04:51:49 2008
I have been working with a layer-backed view hierarchy nested in an
NSScrollView. The layer-backed view is backed by a CAScrollLayer (to
get around the texture size limitation that causes the fade in effect
on the layer-backed view). If I am scrolled to the top of the
documentView in the NSScrollView, however, the view jumps by several
pixels while resizing the NSScrollView. If setNeedsDisplay: is
called, everything redraws and displays as intended. The problem is,
the view always jumps before the setNeedsDisplay is called and the
view always skips.
My question: does anyone have any recommendations about how to set up
a large layer-backed view nested inside an NSScrollView (or something
else to accomplish the same effect)? Also, has anyone else
experienced the aforementioned problem?
If necessary, I can post a screencast showing the problem. Hopefully
the problem mentioned above makes sense.
Thanks for your help
Luke Gladding
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

