]> gitweb.factorcode.org Git - factor.git/commitdiff
cocoa.touchbar: try this.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sat, 27 Jan 2018 00:48:12 +0000 (16:48 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 27 Jan 2018 00:48:12 +0000 (16:48 -0800)
basis/cocoa/touchbar/touchbar.factor

index e040840b9320289355e7e7d91094c9b9e32f909b..a467dc47f69c1e145983e6e3dde75e56abced3c2 100644 (file)
@@ -7,17 +7,17 @@ IN: cocoa.touchbar
 
 : make-touchbar ( seq self -- touchbar )
     [ NSTouchBar -> alloc -> init dup ] dip -> setDelegate: {
-        [ swap <CFStringArray> { void { id SEL id } } ?-> setDefaultItemIdentifiers: ]
-        [ swap <CFStringArray> { void { id SEL id } } ?-> setCustomizationAllowedItemIdentifiers: ]
+        [ swap <CFStringArray> -> setDefaultItemIdentifiers: ]
+        [ swap <CFStringArray> -> setCustomizationAllowedItemIdentifiers: ]
         [ nip ]
     } 2cleave ;
 
 :: make-NSTouchBar-button ( self identifier label-string action-string -- button )
     NSCustomTouchBarItem -> alloc
-        identifier <CFString> { id { id SEL id } } ?-> initWithIdentifier: :> item
+        identifier <CFString> -> initWithIdentifier: :> item
         NSButton
             label-string <CFString>
             self
-            action-string lookup-selector { id { id SEL id id SEL } } ?-> buttonWithTitle:target:action: :> button
+            action-string lookup-selector -> buttonWithTitle:target:action: :> button
         item button -> setView:
         item ;