Re: why would anyone want to do that?
Re: why would anyone want to do that?
- Subject: Re: why would anyone want to do that?
- From: glenn andreas <email@hidden>
- Date: Thu, 16 Feb 2006 15:34:40 -0600
On Feb 16, 2006, at 1:30 PM, Andy Armstrong wrote:
On 16 Feb 2006, at 19:28, Howard Shere wrote:
I want to have a functional menubar in a window which is displayed
when the displays are captured.
OK, now that we have the question out of the way, I need a way to
put a menubar into a window in a cocoa application. Any pointers?
Menus are generally at the top of the screen on Mac applications.
Do you mean a popup menu? Or a Windows style menu at the top of a
window?
I believe the key point here was "when the displays are
captured" (i.e., a full screen game and you want to simulate a
menubar because the real menubar is hidden).
I think one of the first problems is "do menus work on captured
displays"? ISTR that at one time (if not still) a captured display
had a blanking window on it, located high in the window order, above
menus. And so as a result, when you try to use a menu, it pops up
_below_ the blanking window.
At the very least, getting the "track one menu to the next" isn't
going to work with a series of NSPopupMenuButtons - you're probably
going to need use Carbon menu tracking to handle that (at which point
you're probably better off making a carbon window on top of your
window so as to not have the mess of trying to mix carbon & cocoa
controls).
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | build, mutate, evolve | images, textures, backgrounds, art
_______________________________________________
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