• 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: Child window shows up on top despite specifying NSWindowBelow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Child window shows up on top despite specifying NSWindowBelow


  • Subject: Re: Child window shows up on top despite specifying NSWindowBelow
  • From: Rob Keniger <email@hidden>
  • Date: Wed, 21 Oct 2009 12:05:33 +1000

On 21/10/2009, at 4:40 AM, Jesper Storm Bache wrote:

> Your analysis (regarding window visibility) sounds plausible as non-
> visible Cocoa windows have no "z-order".
> I have logged: "6802899 Please add latent z-order to hidden NSWindows"
> for this, but in the meantime I am left with having to move "hidden"
> windows off screen and make then visible (then override
> constrainFrameRect to not move the window back on screen).


It's probably better to call NSDisableScreenUpdates(), set the child window ordering/placement/visibility and then call NSEnableScreenUpdates(). This is what I do and it works perfectly. It's one of the main reasons these calls exist, AFAIK.

--
Rob Keniger



_______________________________________________

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

References: 
 >Child window shows up on top despite specifying NSWindowBelow (From: Francisco Tolmasky <email@hidden>)
 >Re: Child window shows up on top despite specifying NSWindowBelow (From: Jesper Storm Bache <email@hidden>)

  • Prev by Date: Displaying a view modally
  • Next by Date: Problems with NSCollectionView
  • Previous by thread: Re: Child window shows up on top despite specifying NSWindowBelow
  • Next by thread: Re: Child window shows up on top despite specifying NSWindowBelow
  • Index(es):
    • Date
    • Thread