Re: Close button vs. command-h
Re: Close button vs. command-h
- Subject: Re: Close button vs. command-h
- From: Mike Abdullah <email@hidden>
- Date: Sat, 3 Feb 2007 12:57:44 +0000
No, they really do close the window since if you command-tab to
iTunes, it will not re-open the main window. The app detects the
user clicking the dock icon and re-opens the window.
Personally, I feel this is poor design, the window should re-open
regardless of how the user activated the app.
I would use your app delegate (or the notification centre) to
register for -applicationDidBecomeActive: and then re-open the window
in that method.
Mike.
On 3 Feb 2007, at 12:38, Ryan Homer wrote:
In most cases, single window non-document-centric apps should
probably quit when their window is closed (think System
Preferences, Calculator, etc).
Thanks for the response, but I need my application to behave as I
have described. I have a main window that is central to the
application. I need to be able to restore my window after the user
has closed it with the close button. So, it should work like the
Mail app, Adium, iTunes, iCal, etc.
So, in these applications, do they intercept the close button and
perform a hide instead?
Thanks.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40mikeabdullah.net
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden