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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:34:07+00:00 2026-05-20T22:34:07+00:00

Unlike Windows, GNOME and most other GUI’s, OS X application programs do not all

  • 0

Unlike Windows, GNOME and most other GUI’s, OS X application programs do not all terminate if the main window (or all the windows) of that application are closed.

For example, fire up Firefox, Safari, Word, or most document based apps. Either click the red dot in the corner or type cmdW to close the window. You can see that the menu of that program is still active, and the program is still running. With OS X newbies, sometimes you will see dozens of these windowless zombies running and they wonder why their computer is getting slower.

With some document based programs, there is some sense to not terminating the application if it has no windows. For example, with Safari or Word, you can still type CmdN and get a new document window for whatever that application was designed to do: browse the web (Safari) or type a new document (Word).

Apple is mixed with their design philosophy on this. Some close on the last window closed and some do not. Third party apps are even more mixed.

There are other apps that do close when their red close button is clicked. System Preferences, Dictionary, the Mac App Store, iPhoto and Calculator do terminate when the sole or last window is closed. iCal, Address Book, iTunes, DVD Player do not terminate.

What I find particularly annoying is the applications that do not have a logical “New Document” or “Open” function yet they do not terminate when the document window is closed. Example: fire up iTunes or Address Book and terminate the main window. There sits a zombie with no window and no function other than manually selecting “Quit”.

It is easy to close the application after the last window closes. Cocoa even gives you notification of that event. Just add this to your application delegate:

  - (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender
{
    return YES;
}

My question is this: Is there any reason I should NOT terminate my application after the last window closes? Why is this so variable on OS X software? Unless the app has a “new” or “open” or some other clearly understood reason to not terminate with no window open, the failure to terminate seems like a bug to me.

  • 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-20T22:34:08+00:00Added an answer on May 20, 2026 at 10:34 pm

    Per Apple’s Human Interface Guidelines (a guide for Mac developers):

    In most cases, applications that are
    not document-based should quit when
    the main window is closed. For
    Example, System Preferences quits if
    the user closes the window. If an
    application continues to perform some
    function when the main window is
    closed, however, it may be appropriate
    to leave it running when the main
    window is closed. For example, iTunes
    continues to play when the user closes
    the main window.

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

Sidebar

Related Questions

I noticed that in Windows 7, unlike XP, if a program crashes that I
I have a class that map objects to objects, but unlike dictionary it maps
I'm using a whole bunch of CALayers, creating a tile-based image not unlike GoogleMaps
I am new in silverlight .. unlike windows form ,I am unable to find
I'm porting a Windows application to Linux and I have a synchronization problem. In
Unlike some others, my Android SDK setup went smoothly on my new Windows 7
I'm building a new windows service with .net 3.5 and unlike 2.0 you cannot
Unlike many of the ASP.NET documentation and examples, I'm doing a gridview list on
I like the idea of CardSpace but unlike OpenID it seems like a real
I've been given some code with commenting unlike anything I've come across before: //{{{

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.