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

robj

macrumors regular
Original poster
Dec 23, 2009
230
0
Madrid, Spain
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.
 

robj

macrumors regular
Original poster
Dec 23, 2009
230
0
Madrid, Spain
This 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:

Code:
NSStatusItem* item = [[NSStatusBar systemStatusBar] statusItemWithLength:65.0];
[item setTitle:@"Test"];
 

ziggyonice

macrumors 68020
Mar 12, 2006
2,385
1
Rural America
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.