-2

How to fix the postion of splitDividerView in NSSplitViewController I had been search for years,but it doesn't work.Please help,Thanks! Once this app start,the left view width is 150,but still i can resize both of the left and right view by dragging the splitDividerView. I have attatached a screenshot for reference

override func viewDidLoad() {
        super.viewDidLoad()
        self.splitView.wantsLayer = true
        self.splitView.setPosition(150, ofDividerAt: 0)

    }

screenshot for reference

JoeJoe
  • 31
  • 6
  • Where is the divider in the image? Do you want to make it impossible to slide the divider? Why do you use a split view? – Willeke Feb 27 '19 at 09:15
  • Yes , i want to make it impossible to slide the divider , and what other kinds of UIObject recommend beside NSSplitController to display to ViewController? – JoeJoe Feb 27 '19 at 09:48
  • Two views side by side. – Willeke Feb 27 '19 at 10:46

1 Answers1

0

I add two container view which is use for managing NSViewController , so get rid of NSSplitView and will save you hours ScreenShot for Reference

JoeJoe
  • 31
  • 6