Is there a way to get
- (void)beginGestureWithEvent:(NSEvent *)event
and
- (void)endGestureWithEvent:(NSEvent *)event
calls to a view even if the containing window is in the background? It seems these calls are only delivered to windows if they are key.
In general no. In Leopard and SnowLeopard, gestures are intended to target only the foreground window. As you discovered, the window server will not even send gesture events to background applications.
You could instal an event tap, but those events don't look exactly their the NS equivalents. All the data is there, though, if you really want to dig into it.
Please file a radar asking for this along with why this would be useful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With