NSView not receiving magnifyWithEvent:

1.6k views Asked by At

I've got a custom NSView and I want to receive the pinch to zoom event. I understand I've got to implement

-(void)magnifyWithEvent:(NSEvent *)event

But, I'm finding that my view is not receiving the event when I try and log it. The view is receiving other mouse events, such as scrollWheel: without a problem, so I'm not sure what I'm missing here.

In my project build settings the deployment target is set to 10.5, I'm not sure if that makes a difference, if so how would I capture this event while maintaining this deployment target?

Thanks!

1

There are 1 answers

0
BenL0 On BEST ANSWER

Ok, my silly mistake: I had the magnify gesture disabled in System Preferences. Doh!