I have an NSSplitView with content in both NSViews. The left NSView has 2 constraints – Equal Widths
and Equal Heights
. The right NSView has something simple, say an NSTextField, which is centered via constraints Center X Alignment
and Center Y Alighment
. This is what I hoped it would look like as I resize the window and/or the NSSplitView divider:
This is what's happening:
I've tried a great deal of configuration changes, I've tried using an NSSplitViewController vs just dropping an NSSplitView into an NSViewController to adjust more parameters programmatically, but I'm not having any luck. Whenever resizing the window, the left view always takes over the excess space. The same happens with the divider (it can be resized, but letting go of the mouse button causes it to snap right back). It seems there's something fundamental that I'm missing here.