name thatuiuser interface
pop-up buttonpicks a value, shows it
pull-down buttonfixed label, runs actions
combo boxtype anything or pick

Pop-Up Button vs. Pull-Down Button vs. Combo Box

/ NSPopUpButton · NSComboBox /

also called pop-up menu button, pull-down menu button, combo box, menu picker

A pop-up button represents a selection: its closed label shows the current choice, and opening it presents the available values. A pull-down button uses NSPopUpButton with pullsDown set to true and presents commands from a fixed button label rather than communicating a persistent selection. A combo box is a text field plus a drop-down list, so the user can type a value instead of being limited to the listed choices.

Anatomy — every part, named

  1. 1
    Current-value labelNSPopUpButton.titleOfSelectedItem

    “The dropdown text that shows what is selected” is the pop-up button's current-value label.

  2. 2
    Pull-down indicatorNSPopUpButton.pullsDown

    “The little arrow showing that this button opens actions” is the pull-down indicator.

  3. 3
    Editable value fieldNSComboBox

    “The dropdown field where I can type my own value” is the combo box's editable field.

  4. 4
    Selected-item checkmarkNSMenuItem.state

    “The checkmark next to the current choice” is the selected menu item's state mark.

Prompt — paste into your agent

Choose the correct control from Pop-Up Button vs. Pull-Down Button vs. Combo Box: use NSPopUpButton with pullsDown false for a persistent selection, the same control with pullsDown true for a menu of commands, or NSComboBox when the user may type a value as well as choose one. Preserve the native arrow, menu behavior, and displayed-value semantics of the chosen control.

In code

The exact names this thing goes by in code — each row is one framework’s word for it. Use the row that matches your project (or paste it into your prompt).

AppKitNSPopUpButtona selection control when pullsDown is false
AppKitNSComboBoxan editable text field paired with a choices list
AppKitNSPopUpButton.pullsDowntrue makes it an action-oriented pull-down button
SwiftUIPicker

See also

Search

Describe the UI element you're thinking of