• 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
NSViews and NSOpenGLContext, "invalid drawable" error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSViews and NSOpenGLContext, "invalid drawable" error


  • Subject: NSViews and NSOpenGLContext, "invalid drawable" error
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 13 Dec 2005 15:59:35 -0500
  • Organization: Rogue Research

Hi all,

I have a custom NSView subclass that uses OpenGL (it's not an
NSOpenGLView subclass though). In my NSDocument's
windowControllerDidLoadNib: method I do some initialisation which ends
up calling my NSOpenGLContext's setView: method. However, at that
point, I see "invalid drawable" printed in the console.

As best as I can figure, this is happening because the NSWindow (and
hence my view) are not visible onscreen yet, and the system doesn't like that.

When is a safe time to call NSOpenGLContext's setView:? I guess
windowControllerDidLoadNib: is too early.

Thanks!

--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Column Header Disappears
  • Next by Date: NSPasteBoard setPropertyList:forType
  • Previous by thread: Re: Column Header Disappears
  • Next by thread: NSPasteBoard setPropertyList:forType
  • Index(es):
    • Date
    • Thread