menubar app

cfleck

tired
i've got an idea for an app i'd like to write and i need some pointers. actually i've already got done what i want in a perl script, but i want to convert it a bit.

my question is, how do i make an app that only has an icon in the menubar and not the dock. essentially what i'd like to have happen, is for my app to poll some resources now and then and change the icon depending on what it finds. part 2 would be to allow the user to click on the icon to perform an action.

where can i start? please no general check out apple's dev pages or whatever. i've looked there and its like wading through a pile of poo to find a nickle.
 
- NSStatusItem (for the menu bar icon)
- NSTask (for running your Perl script)
- And to not make it a visible app in the Dock, in your Info.plist of the application, create an entry called NSUIElement and set it to "1" (as a string).
 
Back
Top