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 6833797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:01:32+00:00 2026-05-26T23:01:32+00:00

I need to launch my application without windows, but when an error occurs I

  • 0

I need to launch my application without windows, but when an error occurs I need to display the error in a window. My problem is that I can’t make my window as first responder, so the windows buttons aren’t working because the window is not in focus.
I created a window and its controller. The button have the action defined.
Any ideas?
This is my source code:

@interface ErrorWindow : NSWindowController {
    IBOutlet NSImageView *_imageView;
    IBOutlet NSTextField *_message_text;
    IBOutlet NSTextField *_informative_text;
    IBOutlet NSWindow *_errorWindow;

}

- (IBAction)closeWindowAction:(id)sender;

In my implementation:

- (void)awakeFromNib {

    [_errorWindow makeKeyAndOrderFront:self];
    [NSApp activateIgnoringOtherApps:YES];
}
  • 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-26T23:01:33+00:00Added an answer on May 26, 2026 at 11:01 pm

    Maybe the problem is that you are calling [NSApp activateIgnoringOtherApps:YES]; after displaying the window. Have you tried reversing the order?

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

Sidebar

Related Questions

There's Quicktime SDK for Windows, but any application that uses it needs quicktime runtime
I've a web application, which works without any problem in my browser. But if
I need to launch programs in my local system using VBScript. But I am
I need to launch an external process, that at times, will lock up. I
I have a console Application and I need to occasionally launch a WPF form
In my Cocoa application I need to run a task that uses unstable unfixable
I am trying to create a Service for Finder, but my application doesn't need
I am currently working on an application that launches separate processes which display additional
I need to launch a program that will at a users pre defined interval,
My Java application require a huge memory heap. I need to launch my application

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.