A view that displays a list of values in a pop-up menu where the user selects a value or types in a custom value.
- macOS 10.0+
A combo box combines the behavior of an
NSText object with an
NSPop object. A combo box displays a list of values from a pop-up list, but also provides a means for users to type in custom values. Figure 1 shows a combo box in its initial state:
Clicking in the text portion of the control allows the user to edit the current value. When the user clicks the down arrow at the right side of the text field, the pop-up list appears, as shown in Figure 2:
NSCombo class uses
NSCombo to implement its user interface.
Also see the
NSCombo protocol, which declares the methods that
NSCombo uses to access the contents of its data source object.