Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Hide the main menubar using SetSystemUIMode System
I know there have been a lot of hints/hacks/tips/etc for trying to get rid of the top Apple menu bar, but most of them seem to be neither universal nor easy to implement.

In browsing Apple's Developer Connection for information about crash logs, I happened to come across their Guide to Creating Kiosks on Mac OS X. Interestingly, there's a demo application called UsingSystemUIMode (56KB download) which, among other things, allows you to hide the Apple menu bar with one click!

[robg adds: There are some other interesting things in the documentation, as well as the sample app -- information on how to permanently hide the Dock and disable the Apple menu, for instance. Note that these are programmatic solutions, not defaults write preferences tweak. I assume, but don't know how, that it should be possible to write these preference settings into any app where you'd like the menubar hidden, for instance. Any takers?]
    •    
  • Currently 2.33 / 5
  You rated: 3 / 5 (6 votes cast)
 
[35,593 views]  

Hide the main menubar using SetSystemUIMode | 14 comments | Create New Account
Click here to return to the 'Hide the main menubar using SetSystemUIMode' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Hide the main menubar using SetSystemUIMode
Authored by: jeff_lamarche on Apr 04, '06 08:08:44AM

Nope... I'm pretty sure you're not going to be able to ge this same functionality using defaults write since this requires actually calling foundation functions that interact with the SystemUIServer. It should be possible to hack these calls into an existing Cocoa application with a little hacking, but this is not something that most end-users are going to be able to do.



[ Reply to This | # ]
Apple doesn't want you doing this
Authored by: keaka on Apr 04, '06 08:13:59AM
I've thought about creating an utility using these APIs, but as it says at the start of the tech note, Apple doesn't want you to do this.
IMPORTANT: The techniques discussed in this technote is intended only for developers who are working with a vertical market which requires kiosk behavior. These techniques should not be used by developers targeting the mass market of regular Mac OS X users.

---
Sanity Software: http://keakaj.com/

[ Reply to This | # ]

Hide the main menubar using SetSystemUIMode
Authored by: Twist on Apr 04, '06 08:19:12AM

Might be possible to do something like this in every app using APE. Might be kind of neat at times to have a menu bar that works like the Dock when hiding is on.



[ Reply to This | # ]
Hide the main menubar using SetSystemUIMode
Authored by: ecco on Apr 04, '06 08:48:13AM

CamiTools for Camino is using this technique. One click to hide the Apple menu and the dock and zooming the window to full size (and vice versa, of course).



[ Reply to This | # ]
What this is and what it isn't.
Authored by: Peter Maurer on Apr 04, '06 09:34:57AM

I'm with Jeff and Twist -- you can't do this for a 3rd-party app by simply editing a plist file somewhere. Code injection (via Input Manager/APE/whatever), however, should be able to do the trick.

Anyway, it's probably a good idea to once more state the following as clearly as possible: The original hint, in its current form, is not about changing an existing application -- let alone altering your overall user interface. Thus, SetSystemUIMode() et al. are only of interest for software developers.

And I'm tempted to think that most of those are already aware of these functions ;-)



[ Reply to This | # ]
Hide the main menubar using SetSystemUIMode
Authored by: unixgold on Apr 04, '06 11:59:31AM

I've been looking for something like this for a while. Generally, I know there aren't any hacks out there that will auto hide/show the menubar but this is something I consider "closer" to such a hack. It's too bad Apple doesn't have this as a feature, but you can always hope it'll end up in there right?



[ Reply to This | # ]
Hide the main menubar using SetSystemUIMode
Authored by: DanFrakes on Apr 04, '06 04:55:23PM
An alternative would be to use the utility MenuShade, which automatically dims, or even blacks out, the menu bar until you mouse over it.

---
Dan Frakes / Senior Editor, Macworld / Senior Reviews Editor, Playlist

[ Reply to This | # ]

Hide the main menubar using SetSystemUIMode
Authored by: unixgold on Apr 05, '06 06:03:31PM

I do that currently and shade it one bar from the left (and hover is at the same place) so it's permanently shaded. I'm looking for an app which sits in the menubar (or not at all as an option) and actively hides the menubar leaving it to be unhidden with a simple mouse movement. Just like the dock.

I've got some code that works but it needs some serious tweaking. Maybe I'll email this website with a link to my sourceforge page (once I get it up, hehe)



[ Reply to This | # ]
Hide the main menubar using SetSystemUIMode
Authored by: meatmcguffin on Apr 04, '06 12:23:51PM

sometimes on a logout the menu bar temporarily goes transparent and, due to the shadowing, looks amazing. it would be nice to have this without relying on the glitch so has anyone found a way of making the menu transparent?



[ Reply to This | # ]
megazoomer
Authored by: davidestes on Apr 04, '06 04:58:22PM
This SIMBL hack will set any app's window to full screen by pushing cmd-enter or picking "Mega Zoom" from the Window menu, and set the menu bar to autohide while it's active:
http://ianhenderson.org/megazoomer.html

[ Reply to This | # ]
megazoomer
Authored by: ubi on Apr 06, '06 02:36:23PM
Awesome! My 12" Powerbook is so much more useful now. Thanks, Ian! (His graffiti window-flipper is also very cool.)

[ Reply to This | # ]
Barmaid.ape does this already
Authored by: jay1 on Apr 04, '06 10:25:18PM
I have been looking into this for some time, and found that a haxie has already been written called Barmaid. All the links that I have searched for appear to be invalid, but I have a kept a copy should you want to test it at your peril. This app has not been developed further for a while and has crashed several Macs in the process. At least it's good to know someone was thinking about this.

---
-J-

[ Reply to This | # ]

Barmaid.ape does this already
Authored by: unixgold on Apr 05, '06 06:19:57PM

care to put it up for download? email me @gmail.com with it if you can't download it.



[ Reply to This | # ]
Hide the main menubar using SetSystemUIMode
Authored by: smeger on Apr 06, '06 10:26:31PM

I wrote an APE module that uses this about a year ago. It's a fun toy, but not very useful because carbon windows get created with their titlebar where the menubar should be. When you try to move them, the menubar drops down, so you can't get the window out of the way.

I'd planned to try to fix it, but never got around to it.



[ Reply to This | # ]