Skip navigation.
 
mlTrouble with NSSplitView
FROM : Andre Masse
DATE : Tue Oct 07 23:41:30 2008

Hi,

I have set up in IB a window with 3 split views. The main split view 
(with a vertical divider) contains 2 splits (horizontal divider):

**************************************
*    *              3              *
*  1  ********************************
*    *                              *
*    *                              *
*******              4              *
*    *                              *
*  2  *                              *
**************************************

I'm using an NSViewController subclass (with an associated nib) for 
each of the views. In the - windowDidLoad: method of my 
NSWindowController subclass, I set dividers positions and add each 
view, resizing it according to the size available in each pane. I'm 
testing this interface so all views contain dummy controls:

1- has only buttons
2- has only a Date picker in calendar form
3- has a multiline text view (with scroller) and 2 buttons.
4- has a NSTableView


At launch, everything is good and I've no problem changing the 
splitter's position between pane 1 and 2 or with the vertical divider. 
Now, if I change the splitter's position between pane 3 and 4 all the 
way up or down and back, the header of the NSTableView and the top of 
the text view, become hidden (under the divider). I've tried many 
combinations of resize/lock for these views in IB, played various 
constants with -setAutoresizingMask:. No luck. Either I'm missing the 
good one, or I'm in the wrong track. This is driving me nuts, any 
advice on getting the good combination?

Thanks,

Andre Masse

Related mailsAuthorDate
mlTrouble with NSSplitView Andre Masse Oct 7, 23:41
mlRe: Trouble with NSSplitView Dave Fernandes Oct 8, 01:44
mlRe: Trouble with NSSplitView Andre Masse Oct 8, 02:59
mlRe: Trouble with NSSplitView Dave Fernandes Oct 8, 03:29
mlRe: Trouble with NSSplitView Jonathan Hess Oct 8, 04:43
mlRe: Trouble with NSSplitView Andre Masse Oct 8, 04:59
mlRe: Trouble with NSSplitView Dave Fernandes Oct 8, 13:59
mlRe: Trouble with NSSplitView Jonathan Hess Oct 8, 21:05