Close button vs. command-h
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