Hello,
I'm working on accessorizing my Cocoa app, and there's one piece of interface which, for reasons I'll omit for brevity, would be much more accessible if they could accept a double-click.
In the voiceover "interaction commands" help, it says:
Click the item under the mouse cursor: VO-Shift-Space bar Press once for a single mouse click and two times to double-click.
However, I find that the events that I'm getting when I mash that key chord don't ever look like a double-click. If I print the NSEvent I receive:
NSEvent: type=LMouseDown loc=(235,33) time=1299585.6 flags=0 win=0x0 winNum=41824 ctxt=0x0 evNum=0 click=1 buttonNumber=0 pressure=1 NSEvent: type=LMouseDown loc=(235,33) time=1299585.7 flags=0 win=0x0 winNum=41824 ctxt=0x0 evNum=0 click=1 buttonNumber=0 pressure=1 NSEvent: type=LMouseDown loc=(235,33) time=1299585.8 flags=0 win=0x0 winNum=41824 ctxt=0x0 evNum=0 click=1 buttonNumber=0 pressure=1 NSEvent: type=LMouseDown loc=(235,33) time=1299585.9 flags=0 win=0x0 winNum=41824 ctxt=0x0 evNum=0 click=1 buttonNumber=0 pressure=1
Compare that to the events received when I actually use the mouse to double-click:
NSEvent: type=LMouseDown loc=(241,33) time=1299577.1 flags=0x100 win=0x0 winNum=41824 ctxt=0x0 evNum=-30410 click=1 buttonNumber=0 pressure=1 NSEvent: type=LMouseDown loc=(241,33) time=1299577.3 flags=0x100 win=0x0 winNum=41824 ctxt=0x0 evNum=-30409 click=2 buttonNumber=0 pressure=1
Note the 2nd click has a click count of two. Any advice? I'm hoping that I don't have to recreate my own click-count timer.
-Jonah |