Re: Netsed child windows oddity...
Re: Netsed child windows oddity...
- Subject: Re: Netsed child windows oddity...
- From: Greg Titus <email@hidden>
- Date: Wed, 30 Nov 2005 13:42:02 -0800
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).
You may also want to check out the palette implementation in
OmniAppKit, which does this.
Hope this helps,
- Greg
_______________________________________________
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