Instance Property

touchInside

A Boolean value indicating whether a tracked touch event is currently inside the control’s bounds.

Declaration

@property(nonatomic, readonly, getter=isTouchInside) BOOL touchInside;

Return Value

YES if the location of the most recent touch event is inside the control’s bounds or NO if it is not.

Discussion

While tracking of a touch event is ongoing, the control updates the value of this property to indicate whether the most recent touch is still inside the control’s bounds. The control uses this information to trigger specific events. For example, touch events entering or exiting a control trigger appropriate drag events.

See Also

Tracking Touches and Redrawing Controls

- beginTrackingWithTouch:withEvent:

Called when a touch event enters the control’s bounds.

- continueTrackingWithTouch:withEvent:

Called when a touch event associated with the control is updated.

- endTrackingWithTouch:withEvent:

Called when a touch event associated with the control ends.

- cancelTrackingWithEvent:

Tells the control to cancel tracking related to the given event.

tracking

A Boolean value indicating whether the control is currently tracking touch events.