Re: Key Equiv for NSButton in an NSDrawer?
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.