Contents

pressureChange(with:)

Informs the current object that a pressure change occurred on a system that supports pressure sensitivity.

Declaration

func pressureChange(with event: NSEvent)

Parameters

  • event:

    An NSEvent object encapsulating information about the event that invoked the change in pressure.

Discussion

This method is invoked automatically in response to user actions. event is the event that initiated the change in pressure.

The default implementation of this method does nothing. Use this method to update the state of your gesture recognizer in whatever way is appropriate.

A gesture recognizer monitors events that occur in its view (and any subviews) but does not take part in the responder chain itself. The gesture recognizer receives events before any views do.

See Also

Related Documentation

Methods for Subclasses