• 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: "John C. Randolph" <email@hidden>
  • Date: Tue, 10 Dec 2002 12:07:36 -0800

On Tuesday, December 10, 2002, at 09:08 AM, 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?

Let the window's delegate take the keystroke, and send -performClick to the button in the drawer?

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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: Re: Setting the image on a pop up button
  • Next by Date: New Rev MultiColumn Text Code Posted - With BUG!
  • Previous by thread: Re: Key Equiv for NSButton in an NSDrawer?
  • Next by thread: Forcing NSImageView's centered image not to be drawn on integral pixels?
  • Index(es):
    • Date
    • Thread