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: Francisco Tolmasky <email@hidden>
- Date: Tue, 20 Oct 2009 21:20:36 -0700
So I've actually narrowed it down to the fact that my windows have a
custom level. If the windows have the standard level then
NSWIndowBelow works fine. Any known workarounds for this?
Thanks,
Francisco
On Oct 20, 2009, at 11: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).
Jesper Storm Bache
On Oct 20, 2009, at 10:43 AM, Francisco Tolmasky wrote:
The title says it all, I set up a child window as such:
[targetWindow addChildWindow:self ordered:NSWindowBelow];
But the child window shows up on top of "targetWindow" until the
first
click, at which point it immediately reorders itself to the back and
behaves correctly from that point forward. My suspicion is that it
has
something to do with the fact that I set the child window before
"targetWindow" is visible, but given the structure of the code it
would be difficult to do otherwise (although not impossible if that
is
the only way to fix this problem). Are there any known issues or
perhaps something obvious that I am doing incorrectly?
Thanks,
Francisco
_______________________________________________
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