Hide The MenuBar or Dock In Specific Apps 11

Trick

Share
Hide The MenuBar or Dock In Specific Apps

Hey

I think this is a cool little trick, its designed to be used when developers are designing apps. In a nut shell, with a simple line of text, you can make specific apps of your choosing hide the dock or menu bar when they are run. If you have an app that you find needs more space on screen you can do this trick to hide the menu bar or dock. For once this trick doesn’t use Terminal.

This trick is going to use property key references, this is basically a line of code that means something to your system. When the app is run, it will check the property references and act upon them. Its kind of like an API call you find in some programs or websites, its a small bit of code, that runs a larger bit of code. The larger bit of code is run by the system and aides in making the developers job a lot easier.

To hide the screen element pick and application of your choice (a simple one to test it out on). In Finder right click on the app and select “Show Package Contents” and navigate to Contents and open “Info.plist” in TextEdit. I have mentioned that this is a long list of property key references, so don’t change any unless you know what you are doing.

In this file, near the top, there should be a piece of text that says <dict>, underneath this add the following making sure all of the text is present.

<key>LSUIPresentationMode</key>
<integer>4</integer>

Hit save an open up your selected program. You should notice that the menu bar and dock have disappeared. They are in fact hiding and will re-appear when you hover your mouse over them.

This trick will behave differently depending on the number that is the “integer”:

  • 0 = Default, nothing will happen.
  • 1 = Should only hide the dock, although this didn’t work for me.
  • 2 = Doesn’t seem to do anything (probably does).
  • 3 = Will hide the menu bar and dock and wont show them when the mouse hovers over.
  • 4 = Hides the menu bar and dock, and will appear when you hover over them.

You can find more specific information about this property key reference on the Apple website. I hope you have fun with this little trick. If you ever want to get back original functionality, simply delete the two lines you have just added.


If you want to keep up with the latests post from Mac Tricks And Tips I recommend you subscribe to the RSS Feed.

Where To Next?

  • Subscribe To Mac Tricks And Tips

11 Responses to “Hide The MenuBar or Dock In Specific Apps”

  1. 1

    The post is very helpful. as per ur post all works except when u provide the value as “1″. Is there a way to hide only the top menu bar and keep the dock still in appearnce. Kindly let me know if the same can be done to the FInder application also.

    Comment By rajesh eber on July 15th, at 8:59 am

  2. 2

    You can’t do it only for the menu bar. This tip can be done with any app with a info.plist, so you should be able to do it with Finder.

    Comment By admin on July 15th, at 11:31 am

  3. 3

    Thanx for the reply . So where do i find the info.plist for the finder app. Kindly let me know the location for the same

    Comment By rajesh eber on July 15th, at 2:27 pm

  4. 4

    You can find it under /System/Library/CoreServices

    Comment By admin on July 15th, at 2:29 pm

  5. 5

    Thanx for the reply. I will try and let u know. Is ther any way i can tweak the gestures of safari 4 like that of Firefox like introducing tab movements. Scrolling to top and bottom of page.

    Comment By rajesh eber on July 15th, at 8:08 pm

  6. 6

    Yeah i tried to change the info.plist of finder but am not able to save it. How do we do it. Is it some sort of permission problem.

    Comment By rajesh eber on July 15th, at 8:11 pm

  7. 7

    Cool!
    I modified the file for Mail, and put Mail to a desktop alone with Spaces.

    讚!

    Comment By Chao on July 27th, at 7:02 am

  8. 8

    Is there a way to have the menu bar follow the application if you have dual monitors?

    Comment By skipfoo on July 27th, at 4:51 pm

  9. 9

    I did this with Firefox. I used 4. Sure enough, the menu bar and dock disappeared but the FF window will not fill the space that they occupied. Not even if i try to manually expand the window by dragging he corner.

    Comment By p0laris on April 24th, at 3:32 am

  10. 10

    I really enjoyed this post. Its nice when you read something that is not only informative but entertaining. Excellent.

    Comment By Vera Young on October 24th, at 2:07 pm

  11. 11

    When I try this on OS X Lion, it says that I do not have permission and asks if I would like to save a duplicate, any advice, thanks.

    Comment By Eric G. on December 7th, at 8:53 am