Overridden to indicate that the current object can prevent the specified gesture recognizer from recognizing its gesture.
- macOS 10.10+
The gesture recognizer to be prevented from recognizing its gesture.
true to indicate that
prevented should be blocked 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, an
NSClick object does not prevent another
NSClick object with a higher click count from recognizing its gesture.