Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

prostuff1

macrumors 65816
Original poster
Jul 29, 2005
1,482
18
Don't step into the kawoosh...
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!!
 
SetSystemUIMode() works when the application is the frontmost one

As reported in Techical Note TN2062:

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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.