Instance Property

indexOfSelectedItem

The index of the item that was last selected by the user.

Declaration

@property(readonly) NSInteger indexOfSelectedItem;

Discussion

If no item is selected, the value in this property is -1.

See Also

Getting the user’s selection

selectedItem

The menu item that was last selected by the user.

titleOfSelectedItem

The title of the item that was last selected by the user.

- objectValue

Returns the index of the selected item.

selectedTag

The tag of the menu item that was last selected by the user.