Instance Property

numberOfItems

The number of menu items in the menu, including separator items.

Declaration

@property(readonly) NSInteger numberOfItems;

Discussion

This property contains a value of type NSInteger that indicates the number of menu items in the menu, including separator items.

See Also

Finding Menu Items

- itemWithTag:

Returns the first menu item in the menu with the specified tag.

- itemWithTitle:

Returns the first menu item in the menu with a specified title.

- itemAtIndex:

Returns the menu item at a specific location of the menu.

itemArray

An array containing the menu items in the menu.