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

Close button vs. command-h


  • Subject: Close button vs. command-h
  • From: Ryan Homer <email@hidden>
  • Date: Fri, 2 Feb 2007 22:43:46 -0500

This is probably an easy question for many of you but I've scoured the documentation and Google and haven't come up with much.

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.

However, most applications make the close button work just like command-h. What do I have to do to get this behaviour? I'm thinking that it may have something to do with the window's delegates windowWillClose or windowShouldClose. I've tried using orderOut:, but it seems to do the same as the close button.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Murat Konar <email@hidden>
  • Prev by Date: filterPredicate and bindings
  • Next by Date: Re: Close button vs. command-h
  • Previous by thread: Re: filterPredicate and bindings
  • Next by thread: Re: Close button vs. command-h
  • Index(es):
    • Date
    • Thread