addTabViewItem(_:)
Adds the specified tab item.
Declaration
func addTabViewItem(_ tabViewItem: NSTabViewItem)Parameters
- tabViewItem:
The tab view item to be added.
Discussion
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
Related Documentation
- Tab View Programming Topics
tabViewItem(at:)numberOfTabViewItemstabViewItems