Skip to content

tjarratt/NSStatusItemExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NSStatusItemExample

This is an example of a background-only OS X application that exists solely as a NSStatusItem (ie: there is no Dock icon, no main application window and it does not show up in the application switcher).

I frequently found myself wanting to write little utilities that require no UI other than a menu, but found the documentation for NSStatusItem (which has been around since OS X 10.0) to be difficult to understand, and despite there being several applications that exist solely as a status bar item (Dropbox.app, to name only one), no one had written much on the topic. Hopefully this will save you some trouble if you're trying to figure out how NSStatusItem, NSMenu, NSMenuItem and LSBackgroundOnly work together.

Documentation available on the Apple Developer site:

About

An example of creating a background-only OS X application with a NSStatusItem bar menu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published