I have an NSSplitView with two subviews. My goal is to have each subview restricted to a minimum width but have the window's minimum width depend on which of the subviews is visible.
So for example, if the left/sidebar subview (with a min width of say 100) is collapsed then the window is permitted to resize all the way down to the right/main subview's min width (say 200). I have that part working for the most part. The part that I haven't been able to figure out is: when the left/sidebar is uncollapsed (either by dragging or double-clicking), the window width should increase to allow space for the left and right views (i.e. a minimum of 100 + 200 + divider).
Can anyone point me in the right direction? Thanks.