• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
When to return YES from -applicationShouldTerminateAfterLastWindowClosed:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When to return YES from -applicationShouldTerminateAfterLastWindowClosed:


  • Subject: When to return YES from -applicationShouldTerminateAfterLastWindowClosed:
  • From: Angela Brett <email@hidden>
  • Date: Sun, 16 Jan 2005 00:13:06 +1300

Hi,

I'm trying to decide whether the app I'm writing should return YES from applicationShouldTerminateAfterLastWindowClosed. I'm fairly sure it should, but I'm wondering if Apple has an official guideline on which applications should quit when the last window is closed. I assumed there would be a guideline somewhere but I checked the AHIG and couldn't find anything. Does anyone know what the official line is on this, or otherwise have an opinion?

My opinion/observation is that non-document-based apps where the user cannot open more than one window or group of related windows (excluding auxiliary windows like panels etc) quit when the last window is closed. But iCal seems to go against that, as far as I know there is no way to open more than one calendar window but iCal does not quit when you close the window. In fact, the 'Close' menu item is still available even when there is no window to close. So either iCal is going against the guideline, or the guideline is not what I guessed it is.
--
Angela Brett
email@hidden
http://NSCoder.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: When to return YES from -applicationShouldTerminateAfterLastWindowClosed:
      • From: Hannes Basler <email@hidden>
  • Prev by Date: Re: Bur Reporter question
  • Next by Date: Toolbar without bootom separator line
  • Previous by thread: Re: Binding NSTableView to an object's instance variables
  • Next by thread: Re: When to return YES from -applicationShouldTerminateAfterLastWindowClosed:
  • Index(es):
    • Date
    • Thread