removeItem(at:)
Removes the item at the specified index in the toolbar.
Declaration
func removeItem(at index: Int)Parameters
- index:
The index of the item to remove.
Discussion
Typically, you don’t call this method directly from your code. Instead, you specify your toolbar’s allowed items, and the set of default items you want to appear. After that, you let the user customize the toolbar.
Any changes you make to the toolbar appear in all NSToolbar objects with the same identifier value. This method does not trigger a call to your delegate’s toolbar(_:itemIdentifier:canBeInsertedAt:) method for the removal of the item.