How to prevent a click in a window of a background app to make that window and the application its belogns to, to become active ?
The NSWindow methods of interest to you are:
- (BOOL)canBecomeKeyWindow; - (BOOL)canBecomeMainWindow; - (BOOL)acceptsFirstResponder;
and the style mask during the initialization:
- (BOOL)shouldDelayWindowOrderingForEvent:(NSEvent *)theEvent;
styleMask:(… your app specific other flags… | NSNonactivatingPanelMask)