Re: clickCount question
Re: clickCount question
- Subject: Re: clickCount question
- From: "M. Uli Kusterer" <email@hidden>
- Date: Sun, 20 Jul 2003 19:38:35 +0200
At 17:39 Uhr +0100 20.07.2003, Ben Dougall wrote:
// a better thing would be to calculate double click interval here
#define DOUBLECLICK_INTERVAL 0.5
user defaults would be a better place to get this value
Actually, an *even better* thing would be to use a MacOS API. I
don't know whether Cocoa has one (is there a default stored in
NSUserDefaults by default?), but in Carbon there is GetDblTime() (or
something like that), which is part of the old event manager, and
returns the time in ticks (60ths of a second) that must elapse before
two clicks aren't considered a double click anymore.
Just hard-coding a value won't do, because users can specify their
preferred interval in System Preferences -> Mouse.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.