FROM : Andreas Mayer
DATE : Tue Apr 03 19:33:08 2007
Am 03.04.2007 um 18:58 Uhr schrieb Stefan Heukamp:
> I want to get the mouseUp events to start line editing on a single
> click (like e.g in iTunes). My idea was to start line editing on
> the mouseUp when the line was selected before, the mouseDown was at
> most 1 second before the mouseUp and the mouse didn't move in that
> time (much).
>
> Does anybody have an idea on how to get this working?
On mouseDown: you could start a one second timer. In the method
called by the timer check the current mouse state (button down,
position). You might want to add some additional code to make sure
you don't capture double clicks etc.
Andreas
DATE : Tue Apr 03 19:33:08 2007
Am 03.04.2007 um 18:58 Uhr schrieb Stefan Heukamp:
> I want to get the mouseUp events to start line editing on a single
> click (like e.g in iTunes). My idea was to start line editing on
> the mouseUp when the line was selected before, the mouseDown was at
> most 1 second before the mouseUp and the mouse didn't move in that
> time (much).
>
> Does anybody have an idea on how to get this working?
On mouseDown: you could start a one second timer. In the method
called by the timer check the current mouse state (button down,
position). You might want to add some additional code to make sure
you don't capture double clicks etc.
Andreas
| Related mails | Author | Date |
|---|---|---|
| Stefan Heukamp | Apr 3, 18:58 | |
| Nick Zitzmann | Apr 3, 19:05 | |
| glenn andreas | Apr 3, 19:18 | |
| Andreas Mayer | Apr 3, 19:33 | |
| Stefan Heukamp | Apr 3, 20:10 |






Cocoa mail archive

