NSSplitView and autolayout

后端 未结 9 2014
暗喜
暗喜 2021-02-02 10:55

How should I use auto layout constrains inside NSSplitView subview?

My NSSplitView subview has 3 subview: topPane, tableCont

9条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 11:46

    I found out that this error appears if I have toolbar in my window and control split view by any of this delegate methods:

    splitView:constrainMinCoordinate:ofSubviewAt:   
    splitView:constrainMaxCoordinate:ofSubviewAt:
    splitView:shouldAdjustSizeOfSubview:
    

    Solution was found in attaching toolbar to window in windowDidLoad.

提交回复
热议问题