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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:22:20+00:00 2026-05-31T02:22:20+00:00

Our OS X application shows modal forms at times, and one of the downsides

  • 0

Our OS X application shows modal forms at times, and one of the downsides of modal forms is that menu items don’t work when you have a modal form visible. You can click the menu item as normal, but no selectors are called on the target.

This is bad because even if there’s a modal form showing, we want the user to be able to command-q to quit the app, as is normal for apps on on OS X.

However, there is an undocumented method _blocksActionWhenModal that returns YES by default. If you override it to return NO, your menu items start working normally on modal forms, which means everything can be handled properly.

I’d like to find an alternative to this, as I’d prefer not to use an undocumented method like this (as Apple could change it with a new OS release). Is there another way of achieving the same result here? “Not using modal forms” isn’t really an option.

  • 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-31T02:22:21+00:00Added an answer on May 31, 2026 at 2:22 am

    For 10.6+, use [NSWindow setPreventsApplicationTerminationWhenModal:] on the modal window to allow Quit.

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

Sidebar

Related Questions

Our application is a Java-GWT application that uses Guice-Persist and Guice-Servlet extensively. We have
We have a page which shows the top groups for our application. The calculation
we have a customer that's been experiencing some blocking issues with our database application.
During long term operations our C++ Win32 application shows a modal status dialog with
In our application, we have a download flow that works as follows: On main
Our application takes text from a web form and sends it via email to
Our application has many controls that are created dynamically. For example, a navigation pane
Problem: Our web console shows a list of all computers on which our application
We have an ASMX web service which we invoke from our ASP.NET application using
Our application is occasionally getting a BUS_ADRALN. Looking at the crash log it shows

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.