• 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
Re: NSOpenGLView in not shown tab
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >NSOpenGLView in not shown tab (From: Nicolas Berloquin <email@hidden>)

  • Prev by Date: smysl bundled
  • Next by Date: -keyDown and Category problem
  • Previous by thread: NSOpenGLView in not shown tab
  • Next by thread: smysl bundled
  • Index(es):
    • Date
    • Thread