Instance Method

removeAllItems

Removes all items in the receiver’s item menu.

Declaration

- (void)removeAllItems;

Discussion

After removing the items, this method uses the synchronizeTitleAndSelectedItem method to refresh the menu.

See Also

Inserting and deleting items

- addItemWithTitle:

Adds an item with the specified title to the end of the menu.

- addItemsWithTitles:

Adds multiple items to the end of the menu.

- insertItemWithTitle:atIndex:

Inserts an item at the specified position in the menu.

- removeItemWithTitle:

Removes the item with the specified title from the menu.

- removeItemAtIndex:

Removes the item at the specified index.