Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add my program to the OS X system menu bar?

I have created a volume controller for iTunes but I would like this app to place an icon on the OS X system menu bar and have my slider controller drop down.

like image 768
b_d Avatar asked Apr 22 '10 02:04

b_d


1 Answers

You need to create an NSStatusItem in your app. Have a look at the Status Bars documentation.

You would normally create a faceless background app by setting the LSUIElement key in your Info.plist file to YES and have the app create the status item on launch.

like image 99
Rob Keniger Avatar answered Nov 16 '22 10:11

Rob Keniger