MBS NSSplitView headaches

I’m trying to figure out how to set minimum and maximum positions for the SplitView divider(s)

I’ve read through the properties, methods and event handlers, and all I have to show for it is a massive headache.

There’s exactly one code sample, and all it does is show you how to add two TextAreas to a SplitView. If I absolutely never want to know how to do anything else with NSSplitView - then it’s a perfect example.

Try this…
in constrainMaxCoordinates
if dividerIndex = 0 then return 300

in constrainMinCoordinates
if dividerIndex = 0 then return 100

It’s driving me crazy too… I didn’t manage to attach any listbox or container. It acts completely weird. If I still have that project, I will attach it tomorrow (it’s on my office computer :expressionless: ).

2 Likes

Thank you! That worked.

There’s not a freaking chance in hell I would have figured that out from the documentation.

1 Like