Created
May 3, 2012 19:34
-
-
Save Wevah/2588578 to your computer and use it in GitHub Desktop.
Prevent clicks in a popover from activating an LSUIElement app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)sendEvent:(NSEvent *)event { | |
if ([event type] == NSAppKitDefined && ([event subtype] & NSApplicationActivatedEventType) && [[event window] respondsToSelector:@selector(_popover)]) | |
return; | |
[super sendEvent:event]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment