Posted By

tgunr on 03/16/07


Tagged

cocoa osx


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

illogic


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


 / Published in: Objective C
 

URL: http://www.macosxguru.net/article.php?story=20070303105049331

  1. - (BOOL)canBecomeKeyWindow;
  2. - (BOOL)canBecomeMainWindow;
  3. - (BOOL)acceptsFirstResponder;
  4.  
  5. of NSView:
  6.  
  7.  
  8. - (BOOL)shouldDelayWindowOrderingForEvent:(NSEvent *)theEvent;
  9.  
  10. and the style mask during the initialization:
  11.  
  12.  
  13. styleMask:(� your app specific other flags� | NSNonactivatingPanelMask)

Report this snippet  

You need to login to post a comment.