• 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: Andrew Merenbach <email@hidden>
  • Date: Sat, 21 Jun 2008 11:47:25 -0700

On Jun 21, 2008, at 11:00 AM, Georg Seifert wrote:

I use the panel as a palette. Something like the systems font chooser.
They have the close button enabled, but do not responde to close
commands from the keyboard.

Using TextEdit as an example, the font panel *will* close on command-w, if
it becomes key. It is just that it won't become key unless/until all
document windows are closed. This is the expected behavior I was talking
about.

I cannot reproduce this. If I close all documents in Textedit (or any other Mac-App) the font panel stays there and I get a NSBeep on hitting command-w.

Hi! If you click on the Font panel's title bar before you hit command- w, you will see it activate -- then, when you do hit command-w, it *will* close. Thus it does indeed respond to the keyboard shortcut. Perhaps you can work some magic with -(BOOL)canBecomeKeyWindow or - (BOOLcanBecomeMainWindow?


Cheers,
	Andrew

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

_______________________________________________

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

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>)

  • Prev by Date: Re: NSPanel should not close on command-W
  • Next by Date: Application Main window not appearing on application launch
  • 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