Instance Method

itemChanged:

Invoked when a menu item is modified visually (for example, its title changes).

Declaration

- (void)itemChanged:(NSMenuItem *)item;

Parameters

anObject

The menu item that has visually changed.

Discussion

This method is not called for changes involving the menu item's action, target, represented object, or tag. Posts an NSMenuDidChangeItemNotification.

See Also

Adding and Removing Menu Items

- insertItem:atIndex:

Inserts a menu item into the menu at a specific location.

- insertItemWithTitle:action:keyEquivalent:atIndex:

Creates and adds a menu item at a specified location in the menu.

- addItem:

Adds a menu item to the end of the menu.

- addItemWithTitle:action:keyEquivalent:

Creates a new menu item and adds it to the end of the menu.

- removeItem:

Removes a menu item from the menu.

- removeItemAtIndex:

Removes the menu item at a specified location in the menu.

- removeAllItems

Removes all the menu items in the menu.