• 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
setKeyEquivalent issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setKeyEquivalent issue


  • Subject: setKeyEquivalent issue
  • From: Adrian DeWitts <email@hidden>
  • Date: Fri, 6 Dec 2002 00:06:33 +1100
  • Resent-date: Fri, 6 Dec 2002 13:45:46 +1100
  • Resent-from: Adrian DeWitts <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: email@hidden

Hi, I sent this in earlier, has anybody else experienced this?

I have set some of my NSButtons key equivalents to arrow keys like so:

unichar left = NSLeftArrowFunctionKey;
[_rewind setKeyEquivalent:[NSString stringWithCharacters:&left length:1]];

Which works but instead sends 2 action messages. One on the key down and one on the key up. If I set the key equivalents to anything else with this method it works fine and sends the 1 action message as it should. I have made sure there are no other action items set to the arrow keys. Also if I set the modifier with setKeyEquivalentModifierMask it will work as expected with the modifier. I have also made a fresh testing program to test this and get the same problem.

So what am I missing here?

Thanks for your help.


Adrian

"I believe in equality for everyone, except reporters and photographers."
Gandhi _______________________________________________
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.
  • Follow-Ups:
    • Re: setKeyEquivalent issue
      • From: j o a r <email@hidden>
  • Prev by Date: NSButton highlight
  • Next by Date: NSData to plist
  • Previous by thread: setKeyEquivalent issue
  • Next by thread: Re: setKeyEquivalent issue
  • Index(es):
    • Date
    • Thread