title: Mac OS X Lion: Detect if another application is running in full screen mode?
body: <p>In a Cocoa app, is there a way to tell if another application currently is in full screen mode?</p>
  
  <p>My application is configured to show up on all Spaces and listens for <code>mouseEntered</code> events to order itself to the front. </p>
  
  <p>Problem is that when another app is in full screen mode and the user happens to move the mouse across the black area where my app's window is located, it is brought to the front (happens with multiple monitors).</p>
  
  <p>I've only seen the above behavior with <code>[self setCollectionBehavior: NSWindowCollectionBehaviorCanJoinAllSpaces];</code> enabled.</p>
  
  <p>Here the other relevant code for my app.</p>
  
  <pre><code>- (void) mouseEntered:(NSEvent *)theEvent
  {
      // Don't do this when another app is in full screen mode:
      [[self window] orderFront:self];
  }
  </code></pre>