A snapshot of a particular touch at an instant in time.
SDK
- macOS 10.6+
Framework
- App
Kit
Declaration
class NSTouch : NSObject
Overview
A touch event is not persistent throughout the touch, new instances are created as the touch progresses. The identity property is used to follow a specific touch across its lifetime.
Touches do not have a corresponding screen location. The first touch of a touch collection is latched to the view underlying the cursor using the same hit detection as mouse events. Additional touches on the same device are also latched to the same view as any other touching touches. A touch remains latched to its view until the touch has either ended or is cancelled.