3

I have a split view controller. I made everything working but one thing:

The user is able to drag the center bar to adjust the size of the bottom view.

I have been fiddling with the storyboard for a while but did not find a way to disable this.

normal split view

bottom down

bottom up

Is there a way to prevent it from moving like the picture above? Thanks.

Tom Shen
  • 1,838
  • 3
  • 19
  • 40

1 Answers1

0

Your images are broken but here's my guess what you need

override func splitView(_ splitView: NSSplitView, effectiveRect proposedEffectiveRect: NSRect, forDrawnRect drawnRect: NSRect, ofDividerAt dividerIndex: Int) -> NSRect {
    return NSZeroRect
}
Fangming
  • 24,551
  • 6
  • 100
  • 90