Class

NSSharingServicePickerTouchBarItem

A bar item that, along with its delegate, provides a list of objects eligible for sharing.

Declaration

class NSSharingServicePickerTouchBarItem : NSTouchBarItem

Topics

Setting the Delegate

var delegate: NSSharingServicePickerTouchBarItemDelegate?

The object that acts as the delegate of the sharing service picker bar item.

protocol NSSharingServicePickerTouchBarItemDelegate

A protocol that a sharing service picker item delegate uses to provide a list of items eligible for sharing.

Configuring the Appearance

var buttonImage: NSImage?

The image displayed in the sharing service picker item button.

var buttonTitle: String

The text displayed in the sharing service picker item button.

Enabling the Item

var isEnabled: Bool

A Boolean value that specifies whether the sharing service picker item is enabled.

Relationships

Inherits From

Conforms To

See Also

Touch Bar Items

class NSTouchBarItem

A UI control shown in the Touch Bar on supported models of MacBook Pro.

class NSCandidateListTouchBarItem

A bar item that, along with its delegate, provides a list of textual suggestions for the current text view.

class NSColorPickerTouchBarItem

A bar item that provides a system-defined color picker.

class NSCustomTouchBarItem

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 NSGroupTouchBarItem

A bar item that provides a bar to contain other items.

class NSPopoverTouchBarItem

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 NSSliderTouchBarItem

A bar item that provides a slider control for choosing a value in a range.

class NSUserInterfaceCompressionOptions

An object that specifies how user interface elements resize themselves when space is constrained.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software