Domanda

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!

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top