• 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: detecting a double click ahead of time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: detecting a double click ahead of time


  • Subject: Re: detecting a double click ahead of time
  • From: Bertil Holmberg <email@hidden>
  • Date: Wed, 22 Oct 2003 11:53:17 +0200

Robert,

There is a thread in mamasam on "com.apple.mouse.doubleClickThreshold"

http://cocoa.mamasam.com/COCOADEV/2003/07/2/68727.php

Since this value might not be present, it could be a good idea to
bracket it within some reasonable values, perhaps like this:

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
// Get the default(?) doubleclick interval (0.457143)
doubleClickTime = [defaults
floatForKey:@"com.apple.mouse.doubleClickThreshold"];
// Make sure it has a reasonable duration
doubleClickTime = ( doubleClickTime < 0.2 ) ? 0.2 : doubleClickTime;
doubleClickTime = ( doubleClickTime > 0.75 ) ? 0.75 :
doubleClickTime;

Best wishes,
Bertil
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: detecting a double click ahead of time
      • From: "Alastair J.Houghton" <email@hidden>
  • Prev by Date: Re: NSTask and Notification?
  • Next by Date: Re: detecting a double click ahead of time
  • Previous by thread: Re: detecting a double click ahead of time
  • Next by thread: Re: detecting a double click ahead of time
  • Index(es):
    • Date
    • Thread