• 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: How to get interval (in seconds) between mouse clicks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to get interval (in seconds) between mouse clicks (From: "Matt R" <email@hidden>)

  • Prev by Date: How to get interval (in seconds) between mouse clicks
  • Next by Date: Subclass observers on dealloc
  • Previous by thread: How to get interval (in seconds) between mouse clicks
  • Next by thread: Subclass observers on dealloc
  • Index(es):
    • Date
    • Thread