UIEvent timestamp clarification
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