A bar item that provides a system-defined color picker.
SDKs
- macOS 10.12.2+
- Mac Catalyst 13.0+
Framework
- App
Kit
Declaration
class NSColorPickerTouchBarItem : NSTouch Bar Item
A bar item that provides a system-defined color picker.
SDKs
Framework
class NSColorPickerTouchBarItem : NSTouch Bar Item
class func color Picker(with Identifier: NSTouch Bar Item .Identifier) -> Self
Creates a bar item with the standard color picker icon.
class func text Color Picker(with Identifier: NSTouch Bar Item .Identifier) -> Self
Creates a bar item with the standard text color picker icon.
class func stroke Color Picker(with Identifier: NSTouch Bar Item .Identifier) -> Self
Creates a bar item with the standard stroke color picker icon.
class func color Picker(with Identifier: NSTouch Bar Item .Identifier, button Image: NSImage) -> Self
Creates a color picker bar item using the supplied image as its icon.
var color List: NSColor List!
The list of colors displayed in the color picker.
var allowed Color Spaces: [NSColor Space]?
Controls the color spaces that the color picker can produce.
var shows Alpha: Bool
A Boolean value that controls whether the color picker allows picking of colors with alpha values other than 1
.
var is Enabled: Bool
A Boolean value that determines whether the color picker is enabled.
var color: NSColor
The picker's currently selected color.
var target: Any Object?
An object that is notified when a user interacts with the color picker.
var action: Selector?
The selector on the target object that is invoked when a user interacts with the color picker.
var customization Label: String!
The user-visible string identifying this item during touch bar customization.
class NSTouch Bar Item
A UI control shown in the Touch Bar on supported models of MacBook Pro.
class NSCandidate List Touch Bar Item
A bar item that, along with its delegate, provides a list of textual suggestions for the current text view.
class NSCustom Touch Bar Item
A bar item that contains a responder of your choice, such as a view, a button, or a scrubber (an instance of the NSScrubber
class).
class NSGroup Touch Bar Item
A bar item that provides a bar to contain other items.
class NSPopover Touch Bar Item
A bar item that provides a two-state control that can expand into its second state, showing the contents of a bar that it owns.
class NSSharing Service Picker Touch Bar Item
A bar item that, along with its delegate, provides a list of objects eligible for sharing.
class NSSlider Touch Bar Item
A bar item that provides a slider control for choosing a value in a range.
class NSUser Interface Compression Options
An object that specifies how user interface elements resize themselves when space is constrained.