• 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: What's the magic that makes cmd-w close a window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: What's the magic that makes cmd-w close a window?
      • From: "Marcus S. Zarra" <email@hidden>
References: 
 >Re: What's the magic that makes cmd-w close a window? (From: "Marcus S. Zarra" <email@hidden>)

  • Prev by Date: Re: Am I using NSConditionLock correctly?
  • Next by Date: Re: -observeValueForKeyPath:ofObject:change:context: only defined for abstract class. Runtime error
  • Previous by thread: Re: What's the magic that makes cmd-w close a window?
  • Next by thread: Re: What's the magic that makes cmd-w close a window?
  • Index(es):
    • Date
    • Thread