Re: NSOpenGLView in not shown tab
Re: NSOpenGLView in not shown tab
- Subject: Re: NSOpenGLView in not shown tab
- From: Shaun Wexler <email@hidden>
- Date: Sat, 22 May 2004 09:59:46 -0700
On May 22, 2004, at 9:22 AM, Nicolas Berloquin wrote:
>
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 ?
if ([self canDraw]) {
...
}
--
Shaun Wexler
MacFOH
http://www.macfoh.com
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.