Instance Method

insertItemWithItemIdentifier:atIndex:

Inserts the specified item at the specified index.

Declaration

- (void)insertItemWithItemIdentifier:(NSToolbarItemIdentifier)itemIdentifier atIndex:(NSInteger)index;

Parameters

itemIdentifier

The identifier of the item to insert.

index

The index at which to insert the item.

Discussion

If the toolbar needs a new instance, it will get it from toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:. Typically, you should not call this method; you should let the user reconfigure the toolbar. See the identifier property for important information.

See Also

Managing Items on the Toolbar

- removeItemAtIndex:

Removes the specified item.

selectedItemIdentifier

Returns the identifier of the receiver’s currently selected item, or nil if there is no selection.