RE: Springs and struts with splitview
RE: Springs and struts with splitview
- Subject: RE: Springs and struts with splitview
- From: "Phil Barrett" <email@hidden>
- Date: Tue, 29 Jan 2002 11:55:11 -0000
>
> So far as I can say, you have to ensure that programmatically (see the
>
> NSSplitView delegate methods to do so).
>
>
that only kind of woks. you can make sure the views stay at a certain
>
size with the delegate methods when the divider is being dragged, but
>
not when the window is being resized because your delegate methods don't
>
get called when the window in in resize.
My delegate does get called during resize, because (since we do all our
layout programmatically) I trap windowDidResize: in the window's delegate,
which calls -[NSView setFrame:] on the NSSplitView, which in turn calls its
delegate's splitView:resizeSubviewsWithOldSize: method, wherein I control
the size and position of every subview of the splitter.
Phil