• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSOpenGLView in not shown tab
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: NSOpenGLView in not shown tab
      • From: Shaun Wexler <email@hidden>
  • Prev by Date: Re: Menu-less popup buttons
  • Next by Date: smysl bundled
  • Previous by thread: Re: NSTableView and NSArrayController
  • Next by thread: Re: NSOpenGLView in not shown tab
  • Index(es):
    • Date
    • Thread