make-touchbar ( seq self -- touchbar )


Vocabulary
cocoa.touchbar

Inputs
seqan object
selfan object


Outputs
touchbaran object


Definition


: make-touchbar ( seq self -- touchbar )
[
NSTouchBar { id { id SEL } } "alloc" send
{ id { id SEL } } "init" send dup
] dip { void { id SEL id } } "setDelegate:" send {
[
swap <CFStringArray>
{ void { id SEL id } } "setDefaultItemIdentifiers:"
send
]
[
swap <CFStringArray>
{ void { id SEL id } }
"setCustomizationAllowedItemIdentifiers:" send
]
[ nip ]
} 2cleave ;