• 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
Re: Full screen applications and Apple UI elements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Full screen applications and Apple UI elements


  • Subject: Re: Full screen applications and Apple UI elements
  • From: Mike Paquette <email@hidden>
  • Date: Thu, 16 Feb 2006 13:58:34 -0800

On Feb 16, 2006, at 1:34 PM, glenn andreas wrote:


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).

Captured displays are effectively removed from the window system, and may be placed in a state where attempts to force window content onto the captured display produces no or incorrect results.


If your program is to use Apple-supplied UI elements such as popup menus, you might want to use HideMenuBar() and place your content in a screen-sized window.

Take a look at http://developer.apple.com/technotes/tn2002/ tn2062.html for setting up a full-screen kiosk-style enviromnent. See also the documentation for HideMenuBar and ShowMenuBar:

http://developer.apple.com/documentation/Carbon/Reference/ Menu_Manager/Reference/reference.html#//apple_ref/doc/uid/TP30000227- CH1g-F09093
_______________________________________________
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
References: 
 >why would anyone want to do that? (From: Howard Shere <email@hidden>)
 >Re: why would anyone want to do that? (From: Andy Armstrong <email@hidden>)
 >Re: why would anyone want to do that? (From: glenn andreas <email@hidden>)

  • Prev by Date: Re: Cross-platform?
  • Next by Date: resize text lines when nstextview is resized
  • Previous by thread: Re: why would anyone want to do that?
  • Next by thread: Re: why would anyone want to do that?
  • Index(es):
    • Date
    • Thread