Auto-hide OS X menu bar?

Posted by dbr on Super User See other posts from Super User or by dbr
Published on 2009-10-10T19:09:43Z Indexed on 2010/03/14 15:05 UTC
Read the original article Hit count: 460

Filed under:
|
|
|
|

Is there a way to auto-hide the OS X menu bar, like is possible with the Dock?

There was an application "Menufela" that did this for Tiger, but I'm not aware of anything similar for Leopard/Snow Leopard..

I'm almost certain this is (programatically) doable, because in full-screen applications the menu bar is hidden, and reappears when you mouse the mouse is at the top of the screen..

Edit: With the help of Steve Folly's answer, the following code:

[[NSApplication sharedApplication]
     setPresentationOptions:   NSApplicationPresentationAutoHideMenuBar
                             | NSApplicationPresentationAutoHideDock];

..will auto-hide the menubar (and the dock, as mandated by the API), but only for the current application:

When controlling or disabling features of Mac OS X system using SetSystemUIMode the requested behaviors are only in effect while the process which called SetSystemUIMode is frontmost

..close, but not quite there

© Super User or respective owner

Related posts about mac

Related posts about osx