Re: doubleClick slop?
Re: doubleClick slop?
- Subject: Re: doubleClick slop?
- From: Murat Konar <email@hidden>
- Date: Thu, 19 Apr 2007 18:21:12 -0700
On Apr 19, 2007, at 3:47 PM, Matthew Xavier Mora wrote:
Nowadays, click counts are provided by the OS. Playing around with
Cocoa a bit confirms that Cocoa (and presumably Carbon as well)
still adhere to the classical definition of "double click".
Are you sure about that? Double clicking in Mail while moving the
mouse still results in a double click (ie text is getting
selected). So unless the whole view is considered sufficiently
close I don't think its taking into account location of the click. :-)
Are you sure about that? Maybe you're seeing selection as the result
of unintended drags?
Try this:
Setup an NSTextView (Apple's Mail app should do nicely) that contains
an uninterrupted sequence of letters so that the text system
considers the entire contents a single word. A double-click anywhere
in the text should result in the whole block of text being selected.
Accidental drags will manifest themselves as partial selections.
Now quickly click in opposite corners of your text, being careful not
to drag. To make this easier, you can set your double click interval
(aka "Double-Click Speed" in the "Keyboard & Mouse" prefs pane) to
its slowest setting. This will give you ample time to get your mouse
from one corner to the other.
If proximity of the mouseUp/Down pair weren't being used to determine
what constitutes a double-click, even clicking in opposite corners of
your block of text should result in the entire block being selected,
as long as the mouseUp/Down pair happen within the double click
interval. That doesn't happen on my machine; the clicks have to be
"close".
Or since you're at Apple, perhaps you could just have a look under
the hood and let us know how it really works... :-)
_murat
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden