FROM : j o a r
DATE : Tue Nov 12 22:13:00 2002
Set a breakpoint in the action method and trap it in the debugger, try
to see if you can find out how it's called when it's triggered.
Do you have several action items with the same keyboard equivalent? For
example some menu item? Could this problem be related to the time you
keep the key pressed? Is the button using continous actions?
j o a r
On Sunday, Nov 10, 2002, at 11:21 Europe/Stockholm, Adrian wrote:
> 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. If I set the key
> equivalents to anything else with this method it works fine and sends
> the 1 action message as it should.
>
> So what am I missing here?
DATE : Tue Nov 12 22:13:00 2002
Set a breakpoint in the action method and trap it in the debugger, try
to see if you can find out how it's called when it's triggered.
Do you have several action items with the same keyboard equivalent? For
example some menu item? Could this problem be related to the time you
keep the key pressed? Is the button using continous actions?
j o a r
On Sunday, Nov 10, 2002, at 11:21 Europe/Stockholm, Adrian wrote:
> 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. If I set the key
> equivalents to anything else with this method it works fine and sends
> the 1 action message as it should.
>
> So what am I missing here?
| Related mails | Author | Date |
|---|---|---|
| Adrian | Nov 10, 02:22 | |
| Adrian | Nov 12, 13:53 | |
| j o a r | Nov 12, 22:13 | |
| Adrian | Nov 12, 23:26 | |
| Bryan Blackburn | Nov 13, 00:29 |






Cocoa mail archive

