Re: NSOpenGLView from a second NSThread (SOLVED)
Re: NSOpenGLView from a second NSThread (SOLVED)
- Subject: Re: NSOpenGLView from a second NSThread (SOLVED)
- From: Nicolas Berloquin <email@hidden>
- Date: Sat, 22 May 2004 17:59:33 +0200
OK, so that people can benefit from this in the future, here is what I
did,
thanks to suggestions :
I overrided the following methods :
- (void) prepareOpenGL;
- (void) drawRect:(NSRect)rect;
- (void) clearGLContext;
- (void)update;
- (void)reshape;
and in clearGLContext, update and reshape, all I do is call :
for example, for update :
{
[mylock lock];
[super update];
[mylock unlock];
}
and I brace any other method with the same NSLock and no more Kernel
Panics !
But as alex said, user-space code should NEVER hose the kernel. Let us
write
the bugs we want, for christ sake ^_^
thanks to alex and shaun for their help and brent for his eagerness ;-)
_______________________________________________
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.