Re: Close button vs. command-h
Re: Close button vs. command-h
- Subject: Re: Close button vs. command-h
- From: "Clark Cox" <email@hidden>
- Date: Sat, 3 Feb 2007 08:22:36 -0500
On 2/3/07, Mike Abdullah <email@hidden> wrote:
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.
But that is counter to 20+ years of Mac user expectations.
Clicking on the dock/launcher or double-clicking on the application
causes a new window to be opened if none are already opened. Switching
to an application any other way (by cmd-tabbing, using the Application
menu on pre-X MacOS, having the another application quit or hide
itself, etc.) doesn't open a new window.
I would use your app delegate (or the notification centre) to
register for -applicationDidBecomeActive: and then re-open the window
in that method.
So, if I hide the Finder, your app creates a new window?
--
Clark S. Cox III
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