A segment is selected only when the user is pressing the mouse down within the bounds of the segment. When the mouse is no longer down within the segment, the segment is automatically deselected. A momentary segmented control sends an action when the user clicks a segment, and another action when the user releases the segment. If configured as continuous (see
is), the control also sends actions at repeating intervals until the user releases the segment, at which point the control sends its final action.
- macOS 10.3+
When the user clicks a segment, the
selected value is the index of the active segment. When the user releases the segment, the
selected value is
This type of control is illustrated by the navigation segmented control in the Safari toolbar. When you click the back segment, for example, the previous webpage is displayed. This particular control is not configured as continuous. If it were, clicking and holding on the back segment would continue cycling through previous webpages until the segment is released.