• 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: NSMenu menuBarHeight is 0?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMenu menuBarHeight is 0?


  • Subject: Re: NSMenu menuBarHeight is 0?
  • From: Jonathan del Strother <email@hidden>
  • Date: Tue, 25 Oct 2005 01:55:42 +0100


On 25 Oct 2005, at 01:28, Ricky Sharp wrote:


On Oct 24, 2005, at 7:06 PM, Jonathan del Strother wrote:


My app has a fullscreen mode, where the menubar is hidden. If the mouse cursor moves to the top of the display, I'd like to show the menubar - so I need the menubar height to check where the cursor is in relation to it.


You can achieve this by using the appropriate mode and options with the SetSystemUIMode API:


OSStatus theStatus = SetSystemUIMode (kUIModeAllHidden, kUIOptionAutoShowMenuBar);


See <http://developer.apple.com/technotes/tn2002/tn2062.html> for details.


Oooh, nifty - thanks.

One last question : I've seen one fullscreen app (annoyingly I can't remember which one...) which smoothly slides the menubar down, rather than just flicking it in and out of view. Is there a nice easy function call to do that?

Jon
_______________________________________________
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


  • Follow-Ups:
    • Re: NSMenu menuBarHeight is 0?
      • From: Eric Schlegel <email@hidden>
References: 
 >NSMenu menuBarHeight is 0? (From: Jonathan del Strother <email@hidden>)
 >Re: NSMenu menuBarHeight is 0? (From: Scott Thompson <email@hidden>)
 >Re: NSMenu menuBarHeight is 0? (From: Jonathan del Strother <email@hidden>)
 >Re: NSMenu menuBarHeight is 0? (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: NSMenu menuBarHeight is 0?
  • Next by Date: NSException raised within [NSView setHidden]
  • Previous by thread: Re: NSMenu menuBarHeight is 0?
  • Next by thread: Re: NSMenu menuBarHeight is 0?
  • Index(es):
    • Date
    • Thread