• 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
UIEvent timestamp clarification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UIEvent timestamp clarification


  • Subject: UIEvent timestamp clarification
  • From: Andrew Coad <email@hidden>
  • Date: Wed, 12 Jan 2011 18:36:56 -0500
  • Importance: Normal

Reading through the docs, the approximate flow from a user touching an interface component (e.g. a button) to the touch event being processed by the application is:

 - User touches (e.g. a UIButton), a "touch" object is created and enqueued on the dispatch thread (main thread)
 - The touch object is dequeued, a UIEvent object is created and dispatched to the target object (for handling)

The docs also state that the timestamp of the UIEvent [event timestamp] is the time that the event was created.  From this I assume that [event timestamp] is somewhat later than the actual time that user touched the UIButton - how much later depends on system activity around that time.  Is this assumption correct? If so, is there a way to get the time that the user touched the interface?  The small number (indeterminate) of milliseconds lag between touch time and event time is important to me.  I can tolerate processing the event after an indeterminate lag but I do need to know when the actual touch occurred.

ac
 		 	   		  _______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: UIEvent timestamp clarification
      • From: Andrew Coad <email@hidden>
References: 
 >Re: sending a message from an initializer method (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: sending a message from an initializer method
  • Next by Date: Predicate Help
  • Previous by thread: Re: sending a message from an initializer method
  • Next by thread: RE: UIEvent timestamp clarification
  • Index(es):
    • Date
    • Thread