I have an NSSplitView
with four subviews. Each subview has a header with some text and an on/off checkbox, and below it an NSTableView
. The user can toggle visibility of the table by using the checkbox.
If the table is visible at program start, and the user deselects the checkbox, the table disappears. The subview thus becomes a lot smaller.
How do I make my NSSplitView
react to this (by adjusting the dividers)?