Instance Method

removeSplitViewItem(_:)

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

Declaration

func removeSplitViewItem(_ splitViewItem: NSSplitViewItem)

Parameters

splitViewItem

The split view item to remove.

Discussion

After you remove a split view item, the system adjusts the layout of the split view accordingly.

See Also

Modifying a Split View Controller

func addSplitViewItem(NSSplitViewItem)

Adds a split view item to the end of the splitViewItems array of the 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.