Re: Newbie Q: Is it possible to draw functional "Cocoa Controls" in an OpenGL context?
Re: Newbie Q: Is it possible to draw functional "Cocoa Controls" in an OpenGL context?
- Subject: Re: Newbie Q: Is it possible to draw functional "Cocoa Controls" in an OpenGL context?
- From: Scott Anguish <email@hidden>
- Date: Wed, 14 Feb 2007 18:00:47 -0500
On Feb 14, 2007, at 5:52 PM, Daniel Steward wrote:
NSOpenGLView doesn't allow subviews but you could certainly put an
NSView on top of your OpenGL view and put buttons in there. You
could subclass that view to pass mouse clicks that weren't handled
by buttons in the top view down to the OpenGL view.
We recommend against overlaying views like this in the documentation.
Right now the best solution is using an invisible floating window
with the controls that overlaps the OpenGL window. I think there is
an example of this on developer.apple.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden