Last active
November 5, 2016 12:05
-
-
Save n3tr/7a5ce2fe4df01498d646094d5e921145 to your computer and use it in GitHub Desktop.
makeTouchBar()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ViewController: NSViewController { | |
// ... | |
override func makeTouchBar() -> NSTouchBar? { | |
let touchBar = NSTouchBar() | |
touchBar.delegate = self | |
touchBar.customizationIdentifier = .counterTouchBar | |
touchBar.defaultItemIdentifiers = [.increase, .counter, .decrease] | |
return touchBar | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment