Re: Hide a window on close?
Re: Hide a window on close?
- Subject: Re: Hide a window on close?
- From: Mike Abdullah <email@hidden>
- Date: Thu, 14 Sep 2006 20:18:01 +0100
With Mail's implementation, if you use Command-Tab to get back to the
app, the window does not appear. So, to my mind, what is happening
is that the window is being closed normally and then on the
application delegate method:
applicationShouldOpenUntitledFile:
there is a bit of code to open the window again.
To my mind, this is not the full desired behaviour, I want to
actually Hide the app rather than close it, so that command-tabbing
brings the window back.
Mike.
On 14 Sep 2006, at 18:37, Craig Dooley wrote:
I would like to change the behavior of my application to be like
Mail.app or Newsfire when the close button is pressed. These apps
appear to hide the main window, but bring it back when the dock icon
is pressed, exactly as it was before.
Should I make a delegate for windowShouldClose: that hides the window
and returns NO?
-Craig
--
----------------------------------------------------------------------
-
Craig Dooley <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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