If a window is ordered out, AppKit will not order it back in when the app is 
activated.  Is it possible that a different window is created, or that the 
window was not ordered out to begin with?

I'm confused when you say that an ordered-out window is the key window.  That 
should not be possible.

Is it possible that one of the windows is set to hide on deactivate?  The 
visibility of hideOnDeactivate windows is controlled by the window server.  A 
window that is hideOnDeactivate does not get ordered out when the app is 
deactivated: it is merely hidden.

Hope this helps,
-Peter

On May 27, 2010, at 5:44 AM, David Reitter wrote:

> How can I keep invisible windows invisible when my application is raised?
> 
> My application can end up with only one NSWindow "A" that is invisible 
> ([NSWindow orderOut]).  This window is the key window.  The application may 
> also have other windows ("B") that are iconified.
> 
> I find that when switching back to the application, window A is always made 
> visible (provided I am on the same Space as the window).  How do I control 
> that?
> I would get my application to de-iconify B instead.
> 
> Window A is raised even before my 
> applicationShouldHandleReopen:hasVisibleWindows: are 
> applicationDidBecomeActive: are sent.  I have also unsuccessfully tried to 
> implement [NSWindow orderFront] to override the behavior.
> 
> How would I got about keeping the window hidden?
> 
> Thanks for your help._______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/pammon%40apple.com
> 
> This email sent to pam...@apple.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to