NSComboBox
NSComboBox is a user interface control in Apple's AppKit (macOS) that combines a text field with a pop-up list of items. It allows users to select from a predefined set of options or, when editable, to type their own text. The control can operate in two modes: non-editable, where input must come from the list, and editable, where typing can either add new text or trigger autocompletion against the available items.
Items can be supplied directly as strings or provided via a data source. When using a data
Interaction and events are handled through a delegate. A common use is to implement the comboBoxSelectionDidChange:
NSComboBox is commonly configured in Interface Builder or programmatically within macOS applications. It supports both static