Re: When to return YES from -applicationShouldTerminateAfterLastWindowClosed:
Re: When to return YES from -applicationShouldTerminateAfterLastWindowClosed:
- Subject: Re: When to return YES from -applicationShouldTerminateAfterLastWindowClosed:
- From: Hannes Basler <email@hidden>
- Date: Sat, 15 Jan 2005 13:05:27 +0100
- Mail-followup-to: email@hidden
Hi,
On Sun, Jan 16, 2005 at 12:13:06AM +1300, Angela Brett wrote:
>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?
It is in the AHIG [1] in Windows->Window Behavior->Closing Windows.
>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.
If an non-document-based app can provide an useful function without
its main window it should not quit. Like iTunes playing mp3 without
its window or iCal waiting for new events.
Hannes
[1] http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/index.html
--
The probability of someone watching you is proportional to the
stupidity of your action.
_______________________________________________
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