Re: Child window shows up on top despite specifying NSWindowBelow
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