Instance Method

addSplitViewItem(_:)

Adds a split view item to the end of the splitViewItems array of the split view controller.

Declaration

func addSplitViewItem(_ splitViewItem: NSSplitViewItem)

Parameters

splitViewItem

The split view item to add.

Discussion

This is a convenience method you can use, in place of the insertSplitViewItem(_:at:) method, when you want to add split view item to the end of the split view items array. )Calling this method implicitly calls the insertSplitViewItem(_:at:) method.)

If you subclass the NSSplitViewController class, do not call this method in your custom object to add a split view item. Instead, call the insertSplitViewItem(_:at:) method directly.

See Also

Modifying a Split View Controller

func insertSplitViewItem(NSSplitViewItem, at: Int)

Adds a split view item to the splitViewItems array of the split view controller, at a specified index position.

func removeSplitViewItem(NSSplitViewItem)

Removes a specified split view item from the split view controller.