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

  • Home
  • SEARCH
  • 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 9144557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:17:56+00:00 2026-06-17T10:17:56+00:00

I have created a status bar only application for the Mac OS X. Something

  • 0

I have created a status bar only application for the Mac OS X. Something like that http://d.pr/i/Covi . I created it by this tutorial http://cocoatutorial.grapewave.com/2010/01/creating-a-status-bar-application/ . Now I have a question: how I can show window by clicking “About” menu item? I trying that:

#import "IGAppDelegate.h"
#import "IGAboutWindowController.h"

@implementation IGAppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
    // Insert code here to initialize your application
}

- (void)awakeFromNib {
    _statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength];
    [_statusItem setMenu:_menu];
    [_statusItem setTitle:@"LeoHelper"];
    [_statusItem setHighlightMode:YES];
}

#pragma mark - Actions



- (IBAction)quit:(id)sender {
    [NSApp terminate:self];
}

- (IBAction)about:(id)sender {
    IGAboutWindowController *aboutController = [[IGAboutWindowController alloc] init];
    [aboutController showWindow:self];
}
@end
  • 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-06-17T10:17:57+00:00Added an answer on June 17, 2026 at 10:17 am

    I’m going to make a guess that you are using Automatic-Reference-Counting (ARC). If you are, then here’s what’s going to happen in the about: method:

    You first create a local instance of IGAboutWindowController, then tell it to show its window. This will show the window on the screen, but, if your project is using ARC, the window will then immediately disappear. The reason for that is that as soon as the about: method ends, your local instance of the IGAboutWindowController will be automatically deallocated, and as a result, its window will be removed from the screen.

    To successfully implement this about: method in an ARC-managed project, you should define the aboutController as an instance variable of your IGAppDelegate class like this:

    @class IGAboutWindowController;
    
    @interface IGAppDelegate : NSObject <...>
    
    @property (nonatomic, strong) IGAboutWindowController *aboutController;
    
    @end
    

    Then implement your about: method like this:

    - (IBAction)about:(id)sender {
        if (self.aboutController == nil)
           self.aboutController = [[IGAboutWindowController alloc] init];
        [aboutController showWindow:self];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this application that shows an item in the system's status bar, and
I have created an activity which sends a number of notifications to status bar.
I have created an android application that calls (using kSOAP library) a SOAP based
I have created a new project from the template: IPhoneOS>Application>Tab Bar Application. I get
I have created a website loading progress bar using Jquery UI Progress bar. This
Im trying to create a application that should only be visible in the status
I have Xcode 4 and I created an application using the Tab Bar template
I have a HashSet that I created and this is what it contains. It
I have tried almost everything to link picture to Facebook status that is created
I have created a status item (menu bar item) for my app, but at

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.