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


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  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)

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.