Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7552793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:52:30+00:00 2026-05-30T10:52:30+00:00

That show up on menu bar It’s like this question: How to create a

  • 0

That show up on menu bar

It’s like this question: How to create a background-running Cocoa application?

However he ask how to make something that doesn’t show up on menu bar. Well I want things to show up on menu bar.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:52:31+00:00Added an answer on May 30, 2026 at 10:52 am

    The key things you want to do after starting a new Cocoa application in Xcode:

    1) Give one of your classes an NSStatusItem @property and an IBOutlet NSMenu @property
    and initialize them once the application has started in your AppDelegate‘s awakeFromNib (of course, it doesn’t have to be the AppDelegate that controls the status item; you could use another class):

    self.statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength];
    [self.statusItem setMenu:self.menu];
    [self.statusItem setTitle:@"Status"];
    [self.statusItem setHighlightMode:YES];
    

    2) In your MainMenu.xib, make an NSMenu and wire it up to your AppDelegate‘s NSMenu IBOutlet. This will be the menu that shows up when you click on your status item, so add any additional items you want, make IBActions for them, and wire them up.

    3) Also in your MainMenu.xib, delete the Window object in MainMenu.xib because you don’t need a main window to show up when you start the application.

    4) In your info.plist, add the key “Application is agent (UIElement)” and set its value to YES. This gets rid of the dock icon.

    The tutorial that GravityScore linked to covers the same material as above. If after reading the above you’re not sure how you would set up actions for the menu items, or want to know how to dynamically add menu items, this other tutorial might be helpful.

    And of course, see the NSStatusItem Class Reference for how to customize the status item’s appearence.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I noticed that the sample apps from QT show their menu bar as opaque,
I want a few menu entries that show accelerators that are normal keys, like
I am trying to create a menu bar for my application. I have created
I am currently building a menu bar that consists of icons that show a
I have a menu with submenus that can be toggled (hide/show type deal). Is
I have an application that connects to a server. In the status bar I
I am working on an application that has multiple dockable panels like Visual Studio.
http://img6.imageshack.us/img6/1331/19748435.png Looking at that image is the menu bar on my webpage. So far
I have created an NSStatusBar cocoa application which sits in the system status bar.
I have an application that sits in the status bar on the Mac. It

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.