View Full Version : Disable dock icon but keep menu icon
doobs
Apr 20, 2009, 10:11 AM
I have an application (Tweetie) that has a dock icon and a menu bar icon. If I put
<key>LSUIElement</key>
<true/>
after <dict> in the info.plist file for the application, then both the dock and menu bar icons disappear. Does anyone know of a way to disable only the dock icon while keeping the the menu bar icon visible? Thanks in advance...
kainjow
Apr 20, 2009, 11:47 AM
AFAIK, there isn't a way to do this. You either show both Dock and menu bar, or neither and use an NSStatusItem.
Wowzera
Apr 20, 2009, 01:13 PM
AFAIK, there isn't a way to do this. You either show both Dock and menu bar, or neither and use an NSStatusItem.
You are wrong, lot of programs just keep in MenuBar, like InsomniaX - iStat and such.
kainjow
Apr 20, 2009, 01:30 PM
You are wrong, lot of programs just keep in MenuBar, like InsomniaX - iStat and such.
That's what NSStatusItem is. It's the menu item that shows in the menu bar on the right side. Usually apps show this only, or they have a normal Dock icon and menu bar, but not both.
LSUIElement shouldn't hide the NSStatusItem. If it is then something else is going on in the code.
Edit: I tested this using Tweetie although I don't have a Twitter account. The first time it didn't show, but the second time it did, so maybe just try relaunching the app again.
Wowzera
Apr 20, 2009, 02:23 PM
That's what NSStatusItem is. It's the menu item that shows in the menu bar on the right side. Usually apps show this only, or they have a normal Dock icon and menu bar, but not both.
LSUIElement shouldn't hide the NSStatusItem. If it is then something else is going on in the code.
Edit: I tested this using Tweetie although I don't have a Twitter account. The first time it didn't show, but the second time it did, so maybe just try relaunching the app again.
What about Bowtie ? You can see either both, only one or neither. I am not pro on programming, so anyone else can confirm this.
Sorry if I looked to be rude.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.