Enumeration

NSSegmentStyle

The following constants specify the visual style used to display the segmented control. They are used by segmentStyle.

Declaration

typedef enum NSSegmentStyle : NSInteger {
    ...
} NSSegmentStyle;

Topics

Constants

NSSegmentStyleAutomatic

The appearance of the segmented control is automatically determined based on the type of window in which the control is displayed and the position within the window.

NSSegmentStyleRounded

The control is displayed using the rounded style.

NSSegmentStyleTexturedRounded

The control is displayed using the textured rounded style. In macOS 10.7 and later, this style uses the artwork defined for NSSegmentStyleTexturedSquare, so you should specify NSSegmentStyleTexturedSquare instead.

NSSegmentStyleRoundRect

The control is displayed using the round rect style.

NSSegmentStyleTexturedSquare

The control is displayed using the textured square style.

NSSegmentStyleCapsule

The control is displayed using the capsule style. In macOS 10.7 and later, this style uses the artwork defined for NSSegmentStyleTexturedSquare, so you should specify NSSegmentStyleTexturedSquare instead.

NSSegmentStyleSmallSquare

The control is displayed using the small square style.

NSSegmentStyleSeparated

The segments in the control are displayed very close to each other but not touching. For example, Safari in macOS 10.10 and later uses this style for the previous and next page segmented control.

See Also

Specifying the Segment Behavior

trackingMode

The type of tracking behavior the control exhibits.

NSSegmentSwitchTracking

The following constants specify the type of tracking behavior a segmented control exhibits. They are used by trackingMode.

segmentStyle

The visual style used to display the control.