There are several delegate methods for NSApplication, e.g. applicationWillUnhide and NSWindow e.g. windowWillResize:toSize:, etc. If you override them, you should be to intervent the displaying of a window by ordering out or iconizing them again...
-- Reinhard     

Am 27.05.2010 um 14:44 schrieb David Reitter:

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/macmeideln%40googlemail.com

This email sent to macmeid...@googlemail.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