Re: Child and Parent windows have dysfunctional relationship?
Re: Child and Parent windows have dysfunctional relationship?
- Subject: Re: Child and Parent windows have dysfunctional relationship?
- From: Clark Cox <email@hidden>
- Date: Wed, 14 Jul 2004 14:15:20 -0400
On 7 14, 2004, at 11:48, Jeremy Dronfield wrote:
>
On 14 Jul 2004, at 1:28 pm, Andreas Mayer wrote:
>
>
> Am 14.07.2004 um 11:09 Uhr schrieb Jeremy Dronfield:
>
>
>
>> I note from the documentation that child window behaviour in
>
>> relation to the parent is meant to be similar to drawer behaviour.
>
>> Since drawers do resize with their parent window, is this a bug in
>
>> parent window/child window attachment, or simply behaviour not yet
>
>> implemented?
>
>
>
> I don't think it's meant to resize automatically.
>
>
Actually, I expressed that badly. In the particular case I have, the
>
child window isn't meant to resize; it's just meant to stay in the
>
same position relative to the parent window. The child window is
>
located near the bottom right of the parent. When the parent resizes,
>
therefore, the child stays in the same place (in screen coordinates),
>
giving the visual impression of becoming "detached" from the parent.
>
>
> http://developer.apple.com/documentation/Cocoa/Reference/
>
> ApplicationKit/ObjC_classic/Classes/NSWindow.html
>
>
>
> "childWin is ordered either above (NSWindowAbove) or below
>
> (NSWindowBelow) the receiver, and maintained in that relative place
>
> for subsequent ordering operations involving either window. While
>
> this attachment is active, [...] moving the receiver will cause
>
> childWin to move.
>
>
>
> I can't find anything about resizing here. Is there some other
>
> documentation?
>
>
No, there isn't (at least not that I'm aware of). I take this document
>
as implying that parent/child behaviour is similar to parent/drawer
>
behaviour. Since a drawer remains firmly attached to its parent, I
>
think a child should do so also. (Or at least should have the option
>
of doing so - e.g. -[NSWindow setFollowsParentWhenResizing:] or
>
something.)
But stays attached how? and to what point in the parent window? Imagine
a child window in the dead center of it's parent. Which edge of the
parent window should the child window move relative to? I would imagine
that since these questions cannot be answered for the general case that
it is left up to you to tell the child how to behave.
--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.