Re: UI Question: Hide application window after minimising
Re: UI Question: Hide application window after minimising
- Subject: Re: UI Question: Hide application window after minimising
- From: Fritz Anderson <email@hidden>
- Date: Fri, 20 Nov 2009 15:19:20 -0600
On 20 Nov 2009, at 2:02 AM, Michael Davey wrote:
> Basically, when you minimise the application, it is window goes down into the dock as per normal, but once this has been doe it then vanishes from the dock, and does not re-appear. Does anyone know if this is possible within Cocoa and which class docs I need to look at to begin implementing it?
Important threshold point: Mac OS X is not Windows. You can't minimize an application — there is nothing on the screen that reifies a whole application.* Applications appear in the form of a set of windows. If there is more than one window, or more than one document, they are all a part of the same application instance.
What this sounds like is that the application hides itself when one of its windows is miniaturized. ([NSApp hide: nil] when a window's delegate receives windowDidMiniaturize:)
I'm curious to know what the use case for this behavior is. On first impression it sounds like a crummy thing to do to the user. When a Mac user clicks the yellow button, he means that he wants to send the window to the Dock. That's what it means in every other application,** and it's not right to appropriate the gesture to mean something else.
If the user wants to hide the application, he already knows how to do that: Select Hide (or cmd-H) from the application menu. He doesn't need another way to do it.
Or do you mean just to remove the one window from the Dock, leaving all the other windows visible? Again, I'd argue it's a misuse of the gesture. Minimize means "minimize," not "vanish." If you want "vanish," close the window, using the close button or menu command, and not the gesture and animation that say, "I'm going to the Dock, and you can find me there." Your application can always bring a closed window back if you want it.
I may be missing something in what you're saying. Can you explain what you mean to do in more detail?
— F
* I know, Dock icon, application menu, etc. But not in the OP's sense of there being an "application" thing that can be miniaturized.
** Barring the Dock preference Jason Foreman points out, but that's the _user's_ choice, and it's uniform across the system, not at the whim of individual apps.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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