View Full Version : Adding an icon to Top Menu Bar
robj
Dec 25, 2009, 05:26 PM
How can I make an Application that adds an icon to Top Menu Bar?
Which are the first steps I should take?
I don't even know where to start :)
Thanks.
GorillaPaws
Dec 25, 2009, 05:41 PM
This (http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Toolbars/Concepts/HowToolbarsWork.html) might be a good place to start. Unless I'm misunderstanding what you're trying to do.
robj
Dec 25, 2009, 05:54 PM
This (http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Toolbars/Concepts/HowToolbarsWork.html) might be a good place to start. Unless I'm misunderstanding what you're trying to do.
Thanks for replying :)
I think that I didn't explain myself very well
I have done a little search and now I can call the things with their names ;)
What I actually wanted to do is to add a NSStatusItem to system NSStatusBar.
And to response myself, the way to do it is using something like:
NSStatusItem* item = [[NSStatusBar systemStatusBar] statusItemWithLength:65.0];
[item setTitle:@"Test"];
ziggyonice
Dec 25, 2009, 06:26 PM
Please consider allowing the user to enable/disable this icon. While having an icon in the menu bar can sometimes be convenient for a commonly used application, it can get to be rather cluttered when there's developers who don't allow their users to remove the icon.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.