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

Garrett

macrumors regular
Original poster
Apr 4, 2007
173
0
22c8acc8ae41c0fa46c28e4350b669fb.png

How would you start to do this? Do you need to create a bundle? I have searched for NSMenu's in the Menu Bar and nothing has came up for your own. :eek: Anything in the right direction would be nice!
 

Manty

macrumors member
Mar 18, 2008
32
0
Lisbon, Portugal
If you mean the status bar icon you must add:
Code:
<key>LSUIElement</key>
<true/>
to your Info.plist file to make it "dockless", then just add a status item programmatically:

Code:
statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:30];
[statusItem setTarget:self];
[statusItem setAction:@selector(showMenu)];
[statusItem setHighlightMode:YES];
[self setStatusItem:statusItem withValue:@"MenuTitle" andImage:nil];
[statusItem retain];

Hope that helps,
Manty
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.