NSButton with modifier key
NSButton with modifier key
- Subject: NSButton with modifier key
- From: Matthew Weinstein <email@hidden>
- Date: Thu, 2 Mar 2006 21:54:48 -0500
Dear Cocoa-community,
I want to have my program respond to a button click differently
depending on whether the option key or command key or no key is
pressed when the button is pressed. I can't figure out how to detect
whether a key is pressed, however. keyEquivalentModifierMask doesn't
seem to do it; it just returns 0 each time. :-( It's got to be
obvious, but somehow I'm not finding out how my action method can
examine sender to find out if any modifiers were clicked.
Help!
TIA
Matthew Weinstein
Matthew Weinstein
Associate Professor of Science Education
Kent State University
404 J White Hall
Kent, OH 44242
email@hidden
330 672-0653
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden