• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hide a window on close?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Hide a window on close? (From: "Craig Dooley" <email@hidden>)

  • Prev by Date: Re: Hide a window on close?
  • Next by Date: Indexed Accessors not being called...
  • Previous by thread: Re: Hide a window on close?
  • Next by thread: Re: Hide a window on close?
  • Index(es):
    • Date
    • Thread