Re: How to get interval (in seconds) between mouse clicks
Re: How to get interval (in seconds) between mouse clicks
- Subject: Re: How to get interval (in seconds) between mouse clicks
- From: "I. Savant" <email@hidden>
- Date: Tue, 30 Jan 2007 20:22:48 -0500
In the button's action method, you can record the current date
(with [NSDate date]) in an instance variable somewhere. At the next
click, get the current date and compare the two with NSDate's -
timeIntervalSinceDate: method. Check out the API reference for NSDate
in the documentation.
--
I.S.
On Jan 30, 2007, at 8:15 PM, Matt R wrote:
Hi!
Im new to Cocoa. How can I get the interval between mouse clicks on a
button (in seconds)?
~Matt
_______________________________________________
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
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