Contents

NSSegmentedCell

An NSSegmentedCell object implements the appearance and behavior of a horizontal button divided into multiple segments. This class is used in conjunction with the Nssegmentedcontrol class to implement a segmented control.

Declaration

class NSSegmentedCell

Overview

Use the methods of NSSegmentedCell to customize the attributes of a segmented control. To customize the appearance of individual segments, you can also subclass and override the drawSegment(_:inFrame:with:) method.

Topics

Specifying the Number of Segments

Specifying the Selected Segment

Specifying the Tracking Mode

Configuring Individual Segments

Drawing Custom Content

Specifying Segment Visual Styles