• 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: Close button vs. command-h
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Close button vs. command-h


  • Subject: Re: Close button vs. command-h
  • From: Murat Konar <email@hidden>
  • Date: Fri, 02 Feb 2007 19:58:23 -0800


On Feb 2, 2007, at 7:43 PM, Ryan Homer wrote:

When you create a skeleton, non-document based, Cocoa application and run it, the default behaviour of the close button seems to hide the window and not quit the program, but then it's not possible to restore the window by clicking the icon in the dock. This is different from command-h which hides the window but allows it to be restored from the dock.

That's because the close button closes the window, it doesn't hide it.

However, most applications make the close button work just like command-h.

No they don't.

What most document based apps do when users click on their dock icon is this:

1) If the app has open, unhidden documents, they are brought forward

2) If the app has open, hidden documents, they are unhidden and brought forward.

3) If the app has no open documents, one is created for the user

In most cases, single window non-document-centric apps should probably quit when their window is closed (think System Preferences, Calculator, etc).

_murat

_______________________________________________

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


  • Follow-Ups:
    • Re: Close button vs. command-h
      • From: Ryan Homer <email@hidden>
References: 
 >Close button vs. command-h (From: Ryan Homer <email@hidden>)

  • Prev by Date: Close button vs. command-h
  • Next by Date: A Drag that Never Starts...
  • Previous by thread: Close button vs. command-h
  • Next by thread: Re: Close button vs. command-h
  • Index(es):
    • Date
    • Thread