• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: doubleClick slop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: doubleClick slop?
      • From: Murat Konar <email@hidden>
References: 
 >doubleClick slop? (From: Murat Konar <email@hidden>)
 >Re: doubleClick slop? (From: "I. Savant" <email@hidden>)
 >Re: doubleClick slop? (From: Murat Konar <email@hidden>)
 >Re: doubleClick slop? (From: Michael Watson <email@hidden>)
 >Re: doubleClick slop? (From: Murat Konar <email@hidden>)
 >Re: doubleClick slop? (From: Matthew Xavier Mora <email@hidden>)

  • Prev by Date: Re: Non-rectangular cursor tracking regions
  • Next by Date: Re: Framework versioning in OS X
  • Previous by thread: Re: doubleClick slop?
  • Next by thread: Re: doubleClick slop?
  • Index(es):
    • Date
    • Thread