View Full Version : Show in menu bar and hide dock icon
prostuff1
Dec 21, 2008, 09:01 PM
I am trying to add some functionality to Transmission. Have most of it done the way i want it, but am trying to figure out how to programatically show and hide a dock icon along with how to show and hide a menubar icon.
I basically want to implement it so it works exactly how Quicksilver does it. I have looked at the quicksilver code but am kinda lost. If anyone can point me in the right direction it would be appreciated!!
grimreaper1377
Dec 21, 2008, 10:06 PM
I was trying to figure this ou too. Any ideas anyone?
kainjow
Dec 22, 2008, 09:20 AM
SetSystemUIMode() might help.
KiamLaLuno
Sep 12, 2009, 08:20 AM
As reported in Techical Note TN2062 (http://developer.apple.com/mac/library/technotes/tn2002/tn2062.html):
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. That is, if another application becomes frontmost after SetSystemUIMode is called, the user interface mode requested will no longer be in effect. Also, if the application which called SetSystemUIMode does at some later time become frontmost again, the user interface mode previously established will come back into effect.
Does that mean the hidden dock icon will return visible, when the frontmost
application is a different one? Or is that valid for all the set flags but the one that hides the application dock icon?
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.