NSOpenGLView in not shown tab
NSOpenGLView in not shown tab
- Subject: NSOpenGLView in not shown tab
- From: Nicolas Berloquin <email@hidden>
- Date: Sat, 22 May 2004 18:22:34 +0200
As a kind of followup on my previous questions about openglViews and
threads,
the NSOpenGLView that I'm drawing into is included inside an NSTabView.
During all my testing period, the tabViewItem that was holding it, was
always
showing by default (at the launch of the app).
Now that I changed that, and that the selected tab item is a different
one
(and that therefore the NSOpenGLView is not visible), I get a
systematical
crash at glViewport() which I call from my draw method.
I checked, and awakeFromNib is called, my NSOpenGLContext is created
there.
Only, prepareOpenGL is not called. So I tried to call it from
awakeFromNib, to no avail.
I also tried to call [myContext setView: self] (from awakeFromNib) with
the same crash at glViewPort().
Any idea as to what I'm forgetting ?
thanks
_______________________________________________
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.