Instance Property

selectedTag

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

Declaration

@property(readonly) NSInteger selectedTag;

Discussion

Tags are integers that you assign to items to identify them in your code. Tags are not used by AppKit.

If no menu 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.

indexOfSelectedItem

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

- objectValue

Returns the index of the selected item.