title: NSPanel in "Non-Activating"-Mode does not always show correct cursors
body: <p>I've created a simple Cocoa-Application in XCode 4.6 with an <code>NSPanel</code> instead of the default <code>NSWindow</code>. When I enable the Non-Activating
  option and start the application everything works fine: </p>
  
  <p>The panel is displayed in front of everything else and when 
  the mouse cursor hovers over the panel's edges it changes from a normal 
  arrow-cursor to the appropriate resize-cursor, so the user knows that he can resize
  the panel.</p>
  
  <p>This works fine as longs as I don't click on any other application 
  as for example Safari or Finder.</p>
  
  <p>From the moment I once give focus to another application, 
  I can click on and hover over my panel as much as I want, the
  cursor style will not change anymore - it always stays an arrow and it's not possible to return to the normal behavior. </p>
  
  <p>The panel stays selectable and in the front, you still can move and resize it, 
  but the mouse cursor stays an arrow all the time. You then cannot even change it
  manually using something like: <code>[[NSCursor crosshairCursor] set]</code>.</p>
  
  <p>So I need to find a way to create a <code>NSPanel</code> that keeps the normal
  automatic-change-cursorstyle-when-hovering-over-panel-edges-behaviour
  even when you give focus to another application.</p>
  
  <p>I have already tried to use an customized <code>NSPanel</code>-class,
  where I have overwritten the  <code>canBecomeKeyWindow</code> and 
  <code>canBecomeMainWindow</code> methods, so that they return YES
  but even when I make my Panel <code>KeyWindow</code> and <code>MainWindow</code>... </p>
  
  <pre><code>[myPanel makeKeyAndOrderFront:self];
  [myPanel makeMainWindow];
  </code></pre>
  
  <p>...it doesn't solve the cursor issue.</p>
  
  <p>Would be great if someone could help me here :)</p>
  
  <p>PS.: the Base SDK and the Deployment Target are set to 10.8 in my project</p>
  
  <hr>
  
  <p>So I found out that the described issue has nothing to to with the panel's window-state. It really doesn't matter if it is set to key or to main, instead the cursor-problem (stays arrow all the time)is related to the application's activation state. </p>
  
  <p>Everything works fine as long as the application that owns the panel is active but if you click on another application my application is deactivated and does not get activated again - even if you click on the panel - because the "<code>non-activating</code>"-option is enabled. </p>
  
  <p>The problem is that i need the "<code>non activating</code>"-option because  I am creating a status-bar-screen-capturing app that should be displayed and operate in front of everything else but without deactivating any running application. I could solve the cursor problem by </p>
  
  <p><code>[NSApp activateIgnoringOtherApps];</code> </p>
  
  <p>but then taking a screenshot of a fullscreen video running in Safari would deactivate Safari and minimize the video, which I don't want.  </p>