Instance Method


Adds the specified tab item.


func addTabViewItem(_ tabViewItem: NSTabViewItem)



The tab view item to be added.


The item is added at the end of the array of tab items, so the new tab appears on the right side of the view. If the delegate supports it, it invokes the delegate’s tabViewDidChangeNumberOfTabViewItems(_:) method.

See Also

Adding and Removing Tabs

func insertTabViewItem(NSTabViewItem, at: Int)

Inserts the specified item into the tab view’s array of tab view items at the specified index.

func removeTabViewItem(NSTabViewItem)

Removes the specified item from the tab view’s array of tab view items.