Re: Cocoa controls on top of an OpenGL view
Re: Cocoa controls on top of an OpenGL view
- Subject: Re: Cocoa controls on top of an OpenGL view
- From: Scott Anguish <email@hidden>
- Date: Mon, 4 Jun 2007 03:09:08 -0400
On Jun 3, 2007, at 2:12 PM, John Stiles wrote:
Is there a recommended way to float Cocoa controls on top of an
NSOpenGLView?
In Carbon, we were able to do this by creating one window which
contained an AGL surface, and then a separate Carbon window. We
"combined" the two windows with window groups and the visual effect
worked.
I'd be OK with this but I don't know if there is a Cocoa equivalent
to window groups, and if there is a simpler way, I'd like to know
more. I do know that, in general, Cocoa does not support Z-ordering
for controls, so that seems like a potential stumbling block.
others have already mentioned the floating window thing...
there is sample code for this technique. FunkyOverlayWindow
http://developer.apple.com/samplecode/FunkyOverlayWindow/index.html
_______________________________________________
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