NSView sets the minimum size to NSSplitView

Is there a way to install (programmatically or through the interface builder) the minimum size of each of the panels (nsviews) on an NSSplitView.

+3
source share
1 answer

Yes, check the documentation for the NSSplitViewDelegate protocol .

Basically, all you have to do is set up a delegate for your NSSplitView and implement one or more of these three methods:

Separation limit

splitView:constrainMaxCoordinate:ofSubviewAt:splitView:constrainMinCoordinate:ofSubviewAt:splitView:constrainSplitPosition:ofSubviewAt:

, . delegate, NSSplitView, , , - , NSSplitViewDelegate. setDelegate: .

+3

All Articles