NSOpenGLView in NSSplitView, redraw problems
NSOpenGLView in NSSplitView, redraw problems
- Subject: NSOpenGLView in NSSplitView, redraw problems
- From: arekkusu <email@hidden>
- Date: Thu, 19 Jun 2003 22:50:17 -0700
Hi,
I have an NSOpenGL view as the top subview in an NSSplitView. Whenever
I drag the divider up so that the GL view is resized smaller, there is
a brief delay before it is properly redrawn. During the delay, you can
see garbage in the space between the old and new divider positions. The
garbage might be black, or other parts of the window content.
You can see this effect easily by taking an Apple GL sample (CubeMap,
for example), putting the GL view into a splitview, and dragging the
divider quickly. The slower your GL view is to redraw, the longer the
garbage is visible.
Is there someplace I can hook into to force redraw of the GL view
before the splitview divider is redrawn? I have tried forcing
setNeedsDisplay:YES in the splitview's delegate's
splitViewWillResizeSubviews: and splitViewDidResizeSubviews: but it
still happens.
thanks,
-alex
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.