NSOpenGLView from a second NSThread
NSOpenGLView from a second NSThread
- Subject: NSOpenGLView from a second NSThread
- From: Nicolas Berloquin <email@hidden>
- Date: Fri, 21 May 2004 17:07:36 +0200
Hello !
I'm using an NSOpenGLView that I call from a second NSThread (other
than the main thread), and only from this thread.
The code works fine, only when I resize the window that holds the view,
I get into a systematical kernel panic.
I read about the kernel panics and opengl on the web, and I understand
why this is happening, and I'm trying to find the best way to catch
when to stop drawing in the background and when to start again.
I read about an NSOpenGLView selector that gets called before the
context is changed (from what I remember), but I couldn't find an
equivallent that would be called when drawing can restart...
Since any not working code gets me into a kernel panic, I thought I'd
ask you guys before I got into a loooong loop of restarting my mac ;-)
thanks for you help ^_^
_______________________________________________
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.