• 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
NSButton with modifier key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSButton with modifier key
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: Advice on using NSCell
  • Next by Date: Re: Eval() ?
  • Previous by thread: Re: Advice on using NSCell
  • Next by thread: Re: NSButton with modifier key
  • Index(es):
    • Date
    • Thread