Instance Property

altersStateOfSelectedItem

A Boolean value that indicates if the pop-up button links the state of the selected menu item to the current selection.

Declaration

@property BOOL altersStateOfSelectedItem;

Discussion

When the value of this property is YES (which is the default value), the state of the selected item is set to NSOnState. When the value of this property is NO, the items in the menu are left alone. When you change the value of this property, the state of the currently selected item is updated appropriately.

Note that this property affects only pop-up buttons (it is ignored for pull-down menus).

See Also

Accessing menu attributes

menu

The pop-up button’s associated menu.

pullsDown

A Boolean value that indicates the behavior of the button’s menu.

autoenablesItems

A Boolean value that indicates if the button automatically enables and disables its items every time a user event occurs.

preferredEdge

The edge of the cell from which the menu should pop out when screen conditions are restrictive.

usesItemFromMenu

A Boolean value that indicates if the control uses an item from the menu for its own title.

arrowPosition

The position of the arrow displayed on the button.