I want to implement a 3-pane vertical NSSplitView
(very similar to Mail.app). I'm not really sure where to start. I'm pretty sure I need to implement a NSSplitViewDelegate
, but I'm not sure which methods and / or their implementations.
The layout I want is the following:
+----------+------------------+------------------------------------+
| | | |
| | | |
| | | |
| | | |
| Pane 1 | Pane 2 | Pane 3 |
| | | |
| | | |
| | | |
| | | |
| | | |
+----------+------------------+------------------------------------+
I want to implement the following constraints for each of the panes:
Any pointers would be much appreciated.
To enforce a minimum size, check out the BESplitViewConstraintEnforcer utility class we created.
By the way: if you want to avoid nesting split views and instead add an additional pane in Interface Builder, drag the new view into the split view object, as shown in the screenshot below.
It is pretty simply in Xcode 8.2.1
Split View Controller
in Interface Builder.View Controller
.Split View Controller
and drag to the additional View Controller
.split items
.That's it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With