Is there any way to get
- (void)beginGestureWithEvent:(NSEvent *)event
and
- (void)endGestureWithEvent:(NSEvent *)event
triggers a view even if the containing window is in the background? It seems that these calls are only delivered to windows if they are key.
In general, no. In Leopard and SnowLeopard gestures are designed to set only the foreground. As you have discovered, the window server does not even send gesture events to background applications.
, , NS. , , .
, , , .
:
NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways
... mouseEntered:
mouseEntered:
, .