Re: Netsed child windows oddity...
Re: Netsed child windows oddity...
- Subject: Re: Netsed child windows oddity...
- From: Jerome Foucher <email@hidden>
- Date: Thu, 1 Dec 2005 08:15:03 +0100
Le 30 nov. 05 à 22:42, Greg Titus a écrit :
On Nov 30, 2005, at 1:18 PM, Jerome Foucher wrote:
Hi there,
In an attempt to implement dockable palettes, I have a window A
that has a child window B
B also has a child window C
C has a child window D
and so on....
What I see is that when A is moved, B and C are moved too but not
D. There seems to be a limit of 3 nested children windows.
When I move B, then C and D move to, but not E.
Is this a wanted behavior or a bug ? Is there any workaround
Not sure whether it is wanted or buggy, but it is certainly true
that you can't count on nesting to work correctly. The workaround
is to make sure you never have child windows with child windows. In
the case of dockable palettes, when you 'join' C and D to A and B,
remove D as a child of C and make both C and D children of A. (I.e.
all other windows in the group are children of the first window
instead of nesting).
That's what I ended doing.
You may also want to check out the palette implementation in
OmniAppKit, which does this.
Damn. Am I re-inventing the wheel ? ;o)
I haven't looked at the Omni frameworks for a while, but it seems to
be a good time to do it.
Thanks
Jérome _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden