Re: What's the magic that makes cmd-w close a window?
Re: What's the magic that makes cmd-w close a window?
- Subject: Re: What's the magic that makes cmd-w close a window?
- From: Jerry Krinock <email@hidden>
- Date: Tue, 11 Oct 2005 19:46:55 -0700
- Thread-topic: What's the magic that makes cmd-w close a window?
Thanks for the help; after reviewing those docs I went back to IB and found
the missing piece. It turns out that TextEdit, and almmost other recent
Apple applications, have a "Close cmd-W" menu item hiding in the "File" menu
and wired to performClose: of FirstResponder. Xcode's "New Cocoa
Application" stationery has this too.
So there's no magic; I had just never noticed this item in the "File" menu.
I had put my "Close" item in the "Window" menu, you know, as in "Close
Window". But oh well I'll go with the crowd and stick it in the File menu.
Jerry
_______________________________________________
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