Running my application in the top right of the menu bar

Discussion in 'Mac Programming' started by Monkaaay, Aug 18, 2007.

  1. macrumors 6502

    Monkaaay

    Joined:
    Jun 19, 2006
    Location:
    Richmond, VA
    #1
    How can I have my application run in the top right of the menu bar similar to Adium?
     
  2. macrumors 603

    swiftaw

    Joined:
    Jan 31, 2005
    Location:
    Omaha, NE, USA
    #2
    The application has to have a menu bar icon as part of it's settings. Not every application has one.
     
  3. thread starter macrumors 6502

    Monkaaay

    Joined:
    Jun 19, 2006
    Location:
    Richmond, VA
    #3
    I can't find a good search query to use in Google to uncover documentation about this. Do you know of any good links I can reference?

    I like how Adium is doing it because it acts as a menu item but doesn't require you to take focus away from the application you're currently working with. I'd like to do something similar.
     
  4. macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
  5. thread starter macrumors 6502

    Monkaaay

    Joined:
    Jun 19, 2006
    Location:
    Richmond, VA
    #5
    I really need to learn how to use their docs. Thanks for the link!
     
  6. macrumors 6502a

    Joined:
    Dec 12, 2005
    Location:
    Adelaide
    #6
    Just some extra stuff:

    To remove the dock icon and make it only available in the menu set LSUIElement in Info.plist to 1

    You can also get NSStatusItems in AppleScript using a addition i made, if anyone wants it just PM me
     

Share This Page