make-NSTouchBar-button ( self identifier label-string action-string -- button )


Vocabulary
cocoa.touchbar

Inputs
selfan object
identifieran object
label-stringan object
action-stringan object


Outputs
buttonan object


Definition


:: make-NSTouchBar-button
( self identifier label-string action-string -- button )
NSCustomTouchBarItem { id { id SEL } } "alloc" send
identifier <CFString>
{ id { id SEL id } } "initWithIdentifier:" send
:> item NSButton label-string <CFString> self action-string
lookup-selector
{ id { id SEL id id SEL } } "buttonWithTitle:target:action:"
send :> button item button
{ void { id SEL id } } "setView:" send item ;