From 1bffdff33aa491dbdd7141b691ebcc5fe7c5c4c0 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Tue, 13 Mar 2018 11:29:16 -0700 Subject: [PATCH] cocoa.touchbar: another experiment for the 10.11 build machine. NSButton.buttonWithTitle:target:action: is 10.12 and later. --- basis/cocoa/touchbar/touchbar.factor | 2 ++ 1 file changed, 2 insertions(+) diff --git a/basis/cocoa/touchbar/touchbar.factor b/basis/cocoa/touchbar/touchbar.factor index e040840b93..8f4a70420e 100644 --- a/basis/cocoa/touchbar/touchbar.factor +++ b/basis/cocoa/touchbar/touchbar.factor @@ -12,6 +12,8 @@ IN: cocoa.touchbar [ nip ] } 2cleave ; +{ id { id SEL id id SEL } } cache-stubs + :: make-NSTouchBar-button ( self identifier label-string action-string -- button ) NSCustomTouchBarItem -> alloc identifier { id { id SEL id } } ?-> initWithIdentifier: :> item