Declaration

class GSFlowSegmentedControl

Declaration

@interface GSFlowSegmentedControl : GSFlowView

Declaration

class GSFlowSegmentedControl(GSFlowView)

Overview

Set segmentCount, then configure each segment with setLabel:forSegment:, setImage:forSegment:, etc. Attach a target/action to be notified when selection changes.

All GSFlowView layout properties (spacing, insets, alignment) apply.

Topics

Instance Properties

  • Number of segments. Increasing this appends new (empty) segments; decreasing it removes segments from the trailing end.

  • The index of the selected segment, or –1 if no segment is selected. In NSSegmentSwitchTrackingSelectAny mode, reflects the most recently toggled segment. Setting this programmatically does not fire the action.

  • Controls how segments respond to clicks. Default: NSSegmentSwitchTrackingSelectOne.

Instance Methods

Relationships

Inherits From

Conforms To

  • AppKit.NSAccessibilityElementProtocol
  • AppKit.NSAccessibilityProtocol
  • AppKit.NSAnimatablePropertyContainer
  • AppKit.NSAppearanceCustomization
  • AppKit.NSDraggingDestination
  • AppKit.NSStandardKeyBindingResponding
  • AppKit.NSTouchBarProvider
  • AppKit.NSUserActivityRestoring
  • AppKit.NSUserInterfaceItemIdentification
  • Foundation.NSCoding
  • ObjectiveC.NSObjectProtocol
  • Swift.CVarArg
  • Swift.CustomDebugStringConvertible
  • Swift.CustomStringConvertible
  • Swift.Equatable
  • Swift.Hashable
  • Swift.Sendable
  • Swift.SendableMetatype

Relationships

Inherits From