Contents

removeItem(identifier:)

Removes the item with matching itemIdentifier in the receiving toolbar. If multiple items share the same identifier (as is the case with space items) all matching items will be removed. To remove only a single space item, use -removeItemAtIndex: instead.

Declaration

func removeItem(identifier itemIdentifier: NSToolbarItem.Identifier)

Discussion

Any change made will be propagated immediately to all other toolbars with the same identifier.