View Full Version : Running my application in the top right of the menu bar
Aug 18, 2007, 01:07 PM
How can I have my application run in the top right of the menu bar similar to Adium?
Aug 18, 2007, 01:08 PM
The application has to have a menu bar icon as part of it's settings. Not every application has one.
Aug 18, 2007, 01:12 PM
I can't find a good search query to use in Google to uncover documentation about this. Do you know of any good links I can reference?
I like how Adium is doing it because it acts as a menu item but doesn't require you to take focus away from the application you're currently working with. I'd like to do something similar.
Aug 19, 2007, 03:51 PM
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSStatusItem_Class/Reference/Reference.html is what you want.
Aug 19, 2007, 05:18 PM
I really need to learn how to use their docs. Thanks for the link!
Aug 19, 2007, 05:34 PM
Just some extra stuff:
To remove the dock icon and make it only available in the menu set LSUIElement in Info.plist to 1
You can also get NSStatusItems in AppleScript using a addition i made, if anyone wants it just PM me