• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Activating application raises windows meant to be invisible
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Activating application raises windows meant to be invisible


  • Subject: Re: Activating application raises windows meant to be invisible
  • From: Peter Ammon <email@hidden>
  • Date: Thu, 27 May 2010 22:04:01 -0700

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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Activating application raises windows meant to be invisible
      • From: David Reitter <email@hidden>
References: 
 >Activating application raises windows meant to be invisible (From: David Reitter <email@hidden>)

  • Prev by Date: Re: Generating PDF images (+followup question)
  • Next by Date: Re: Generating PDF images (+followup question)
  • Previous by thread: Activating application raises windows meant to be invisible
  • Next by thread: Re: Activating application raises windows meant to be invisible
  • Index(es):
    • Date
    • Thread