Search code examples
macosmenubartrayiconnsstatusitem

How to display my app's icon (programmatically) on the top right corner of the Mac OS X menu bar


I know Skype does it - they have a special icon register to there. And then when user click on the icon, a drop down menu will appear...


Solution

  • See the docs for status bar and NSStatusItem. You can also find tutorials and sample code by googling for NSStatusItem.