Re: double-click in nsview
Re: double-click in nsview
- Subject: Re: double-click in nsview
- From: Fritz Anderson <email@hidden>
- Date: Tue, 14 Jun 2005 20:49:27 -0500
On 14 Jun 2005, at 8:28 PM, Chase wrote:
do i have to manually determine if a second click was close enough
to the preceding click to be considered a double-click?
"Close enough" depends on what you're displaying. You have to use
your judgment as to whether two clicks in your view refer to the same
thing.
do i use carbon's GetDblTime() for this or is their a coca equivalent?
The -[NSEvent clickCount] message takes care of the timing. If you're
in your mouseDown: handler, and clickCount is 2, it's (at least) a
double-click.
-- F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden