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 NSSegmentedCellOverview
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
setSelected(_:forSegment:)selectSegment(withTag:)makeNextSegmentKey()makePreviousSegmentKey()selectedSegmentisSelected(forSegment:)
Specifying the Tracking Mode
Configuring Individual Segments
setLabel(_:forSegment:)label(forSegment:)setImage(_:forSegment:)image(forSegment:)setImageScaling(_:forSegment:)imageScaling(forSegment:)setWidth(_:forSegment:)width(forSegment:)setEnabled(_:forSegment:)isEnabled(forSegment:)setMenu(_:forSegment:)menu(forSegment:)setToolTip(_:forSegment:)toolTip(forSegment:)setTag(_:forSegment:)tag(forSegment:)