Re: Can NSView and NSImageView respond to Mouse Clicks?
Hi,toggle quoted messageShow quoted text
This is for NSView, I’ve not looked into NSImageView as yet.
I tried adding a Gesture Recognizer which sort of work except the Handler gets calls more than nice when I mouse down.
Basically, I want to detect a Mouse Down on an NSView Subclass and when it occurs display a Pop-Up Menu. Don’t understand why I'm getting multiple calls - see code below.
All the Best
-(instancetype) initWithCoder:(NSCoder*) theDecoder
self = [super initWithCoder:theDecoder];
if (self == nil)
myGestureRecognizer = [[NSPressGestureRecognizer alloc] initWithTarget:self action:@selector(actionPressGesture:)];
myGestureRecognizer.minimumPressDuration = 0.001;
myGestureRecognizer.buttonMask = 1;
myGestureRecognizer.delaysPrimaryMouseButtonEvents = NO;
-(void) actionPressGesture:(LTWTestViewCell*) theSender
On 20 Sep 2018, at 02:03, Alex Zavatone via Groups.Io <firstname.lastname@example.org> wrote: