Programmatically changing the views inside NSSplitViewController
<p>From the NSSplitViewController class reference at
<a href="https://developer.apple.com/library/prerelease/mac/documentation/AppKit/Reference/NSSplitViewController_Class/index.html" rel="nofollow">https://developer.apple.com/library/prerelease/mac/documentation/AppKit/Reference/NSSplitViewController_Class/index.html</a>
I understand that it has a property that is an array of objects oftype NSSplitViewItem. It also has methods to insert and remove NSSplitViewItem objects.
However, there is no documentation for NSSplitViewItem. How do I create such an object?</p>

<p>I saw one example online:</p>

<pre><code>let svi = NSSplitViewItem(viewController: vc) where vc is of type NSViewController
</code></pre>

<p>But found no Apple documentation at all. It almost seems like Apple wants developers not to programmatically add/remove NSSplitViewItem</p>

<p>Could someone tell me how to create a NSSplitViewItem?</p>