]> gitweb.factorcode.org Git - factor.git/commitdiff
cocoa.touchbar: another experiment for the 10.11 build machine.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 13 Mar 2018 18:29:16 +0000 (11:29 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 13 Mar 2018 18:29:16 +0000 (11:29 -0700)
NSButton.buttonWithTitle:target:action: is 10.12 and later.

basis/cocoa/touchbar/touchbar.factor

index e040840b9320289355e7e7d91094c9b9e32f909b..8f4a70420ea28508919613c1dcc30495e77ad57d 100644 (file)
@@ -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 <CFString> { id { id SEL id } } ?-> initWithIdentifier: :> item