setKeyEquivalent issue
setKeyEquivalent issue
- Subject: setKeyEquivalent issue
- From: Adrian DeWitts <email@hidden>
- Date: Fri, 6 Dec 2002 00:06:33 +1100
Hi guys, I was wondering if you could help me.
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 DeWitts
"To be loved, you have to be nice to others everyday. To be hated, you
don't have to do squat." - Homer Simpson
_______________________________________________
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.