Overridden to indicate that the specified gesture recognizer can prevent the current object from recognizing a gesture.
- macOS 10.10+
The gesture recognizer that can prevent the current object from recognizing its gesture.
true to indicate that
preventing can block the current gesture recognizer from recognizing its gesture, or
false if both gesture recognizers can operate simultaneously.
This method enables similar behavior as the
gesture methods of the gesture recognizer’s delegate. Using this method lets you define rules that apply to all instances of your custom gesture recognizer class. For example, a gesture recognizer of a given class might want to prevent instances of the same class from recognizing at the same time.