---
title: NSSegmentedControl.SwitchTracking.momentary
framework: appkit
role: symbol
role_heading: Case
path: appkit/nssegmentedcontrol/switchtracking/momentary
---

# NSSegmentedControl.SwitchTracking.momentary

A tracking mode that selects a segment when a person clicks within the bounds of the segment.

## Declaration

```swift
case momentary
```

## Discussion

Discussion A momentary segmented control sends an action when a person clicks a segment, and another action when the person releases the segment. If configured as continuous (see isContinuous), the control also sends actions at repeating intervals until the person releases the segment, at which point the control sends its final action. When the person clicks a segment, the selectedSegment value is the index of the active segment. When the person releases the segment, the selectedSegment value is -1. 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.

## See Also

### Constants

- [NSSegmentedControl.SwitchTracking.selectOne](appkit/nssegmentedcontrol/switchtracking/selectone.md)
- [NSSegmentedControl.SwitchTracking.selectAny](appkit/nssegmentedcontrol/switchtracking/selectany.md)
- [NSSegmentedControl.SwitchTracking.momentaryAccelerator](appkit/nssegmentedcontrol/switchtracking/momentaryaccelerator.md)
