Re: NSOpenGLView and resizable NSWindow problem
Re: NSOpenGLView and resizable NSWindow problem
- Subject: Re: NSOpenGLView and resizable NSWindow problem
- From: Klaus Backert <email@hidden>
- Date: Wed, 1 Nov 2006 19:20:29 +0100
Hi,
Am 31.10.2006 um 22:12 schrieb Werner Sharp:
Thanks for the quick reply.
I compared the differences and isolated it down to one tiny bit. If I
add this...
- (void) reshape
{
[[self openGLContext] update];
}
...then my subclass of NSOpenGLView works correctly.
I get white flickering in both versions when I drag the window
under the
dock sometimes. I'm not sure why that is.
-Werner
<snip>
On Tue, 31 Oct 2006 11:21:48 -0800
"Werner Sharp" <email@hidden> wrote:
<snip>
- (void)reshape
{
<snip>
}
//--------------------------------------------------------------------
- (void)drawRect: (NSRect) rect
{
<snip>
if( !ready ) {
// here I call a method to create some glLists, etc...
[self reshape];
ready = YES;
}
<snip>
}
//--------------------------------------------------------------------
--
<snip>
Simone Tellini
according to NSOpenGLView's documentation - based on my experience
it's correct - reshape and update are called automatically by Cocoa.
It shouldn't be necessary to call reshape from inside drawRect and
update from inside reshape. But if someone does, then reshape will be
called twice and update three times.
No insult intended, but, I think, there may be something basically
wrong in the composition of the application.
What do others think?
BTW, wouldn't it be better to take this problem to the Mac-OpenGL
mailing list?!
Cheers
Klaus
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden