• 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: NSPanel should not close on command-W
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPanel should not close on command-W


  • Subject: Re: NSPanel should not close on command-W
  • From: Jim Correia <email@hidden>
  • Date: Mon, 23 Jun 2008 11:18:10 -0400

On Jun 23, 2008, at 3:35 AM, Georg Seifert wrote:

The way I would like it is that is does not respond to "command-w" at all. I think, I will try to implement my my own close button and disable close in IB. Or has anyone a better idea?

A previous response in this thread told you how to do this. You can arrange for the action associated with the Close command (- performClose:) to be disabled when your panel is key.


But it is still unclear to me *why* you want to do this. If your panel has a close box, and it is the window with keyboard focus, many users are going to expect Command-W to close that window. Going out of your want to disable that functionality is likely to frustrate these users.

Jim

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: NSPanel should not close on command-W
      • From: Andy Lee <email@hidden>
References: 
 >Re: NSPanel should not close on command-W (From: Keary Suska <email@hidden>)
 >Re: NSPanel should not close on command-W (From: Georg Seifert <email@hidden>)
 >Re: NSPanel should not close on command-W (From: Jason Stephenson <email@hidden>)
 >Re: NSPanel should not close on command-W (From: Georg Seifert <email@hidden>)

  • Prev by Date: Re: NSPanel should not close on command-W
  • Next by Date: Re: NSPanel should not close on command-W
  • Previous by thread: Re: NSPanel should not close on command-W
  • Next by thread: Re: NSPanel should not close on command-W
  • Index(es):
    • Date
    • Thread