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: Ian was here <email@hidden>
- Date: Sun, 3 Jun 2007 11:52:15 -0700 (PDT)
The way my app was set up was where I have a window
with a QTMovieView as it's content view, then I
created a transparent window with the same dimensions
and added it as a child window. This way, the user
could add images, lines, text, etc... Even QuickTime
movie objects on the transparent window, while having
a QuickTime movie playing in the background. The
performance was better than I had expected.
--- John Stiles <email@hidden> wrote:
> Excellent, this was exactly my plan. It's good to
> hear that it's been
> tried before and it worked out well. Was performance
> OK?
>
> Ian was here wrote:
> > The only way I know of in Cocoa is to create a
> > transparent window with your cocoa controls on it
> and
> > add it as a child window above your OpenGL window.
> > I've done something similar to this and it worked
> out
> > OK.
> >
> >
> >
> >
> > --- John Stiles <email@hidden> 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.
> >>
> >> _______________________________________________
> >>
> >> 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
> >>
> >>
> >
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Finding fabulous fares is fun.
> > Let Yahoo! FareChase search your favorite travel
> sites to find flight and hotel bargains.
> > http://farechase.yahoo.com/promo-generic-14795097
> >
>
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
_______________________________________________
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