Contribute  :  Calendar  :  Advanced Search  :  Site Statistics  :  Directory  :  Files to download  :  Links for developers  :  Privacy policy  :  Web Resources  :  Polls  
    MacOSX Guru Site Information, tips and tricks, FAQ for Mac OS X developers    
 Welcome to MacOSX Guru Site
 Friday, June 23 2017 @ 06:17 AM BST

How to prevent an application to become active when clicking in a window ?

   
Cocoa Development FAQHow 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;
of NSView:

- (BOOL)shouldDelayWindowOrderingForEvent:(NSEvent *)theEvent;
and the style mask during the initialization:

styleMask:(… your app specific other flags… | NSNonactivatingPanelMask)
 

What's Related

Story Options

How to prevent an application to become active when clicking in a window ? | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
 Copyright © 2017 MacOSX Guru Site
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.05 seconds