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

Garrett

macrumors regular
Original poster
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. 😱 Anything in the right direction would be nice!
 
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.