• 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: Key Equiv for NSButton in an NSDrawer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Key Equiv for NSButton in an NSDrawer?


  • Subject: Re: Key Equiv for NSButton in an NSDrawer?
  • From: j o a r <email@hidden>
  • Date: Tue, 10 Dec 2002 18:22:21 +0100

If your assumption is correct, which it could very well be, I suggest that you file a bug with Apple.
One work around coluld be to have a menu item for the same command with the same shortcut. Another work around could be to to place an invisible button in your main window with the only purpose to trap shortcuts for the drawer. Ugly, but works.

j o a r

On Tuesday, Dec 10, 2002, at 18:08 Europe/Stockholm, Dan Wood wrote:

I have an NSButton in an NSDrawer, and I'd like to be able to "click"
it via a keyboard equivalent. When I have a button on a window, this
works well -- just assign it in Interface Builder.

This doesn't seem to be working when the button is on a drawer -- my
guess is because of the first responder chain of command not letting
the drawer have at a keyboard event.

Any suggestions on how to let the drawer's button handle a command-key
keypress?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Key Equiv for NSButton in an NSDrawer? (From: Dan Wood <email@hidden>)

  • Prev by Date: Key Equiv for NSButton in an NSDrawer?
  • Next by Date: Forcing NSImageView's centered image not to be drawn on integral pixels?
  • Previous by thread: Key Equiv for NSButton in an NSDrawer?
  • Next by thread: Re: Key Equiv for NSButton in an NSDrawer?
  • Index(es):
    • Date
    • Thread