Share via


NSPickerTouchBarItem.Create Method

Definition

Overloads

Create(NSTouchBarItemIdentifier, NSImage[], NSPickerTouchBarItemSelectionMode, NSObject, Selector)

[Foundation.Export("pickerTouchBarItemWithIdentifier:images:selectionMode:target:action:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static AppKit.NSPickerTouchBarItem Create(AppKit.NSTouchBarItemIdentifier identifier, AppKit.NSImage[] images, AppKit.NSPickerTouchBarItemSelectionMode selectionMode, Foundation.NSObject? target, ObjCRuntime.Selector? action);
[<Foundation.Export("pickerTouchBarItemWithIdentifier:images:selectionMode:target:action:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : AppKit.NSTouchBarItemIdentifier * AppKit.NSImage[] * AppKit.NSPickerTouchBarItemSelectionMode * Foundation.NSObject * ObjCRuntime.Selector -> AppKit.NSPickerTouchBarItem

Parameters

images
NSImage[]
target
NSObject
action
Selector

Returns

Attributes

Applies to

Create(NSTouchBarItemIdentifier, String[], NSPickerTouchBarItemSelectionMode, NSObject, Selector)

[Foundation.Export("pickerTouchBarItemWithIdentifier:labels:selectionMode:target:action:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static AppKit.NSPickerTouchBarItem Create(AppKit.NSTouchBarItemIdentifier identifier, string[] labels, AppKit.NSPickerTouchBarItemSelectionMode selectionMode, Foundation.NSObject? target, ObjCRuntime.Selector? action);
[<Foundation.Export("pickerTouchBarItemWithIdentifier:labels:selectionMode:target:action:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : AppKit.NSTouchBarItemIdentifier * string[] * AppKit.NSPickerTouchBarItemSelectionMode * Foundation.NSObject * ObjCRuntime.Selector -> AppKit.NSPickerTouchBarItem

Parameters

labels
String[]
target
NSObject
action
Selector

Returns

Attributes

Applies to