Skip to content

Instantly share code, notes, and snippets.

@n3tr
Last active November 5, 2016 11:59
Show Gist options
  • Save n3tr/9e7b5889da7de69b9b54bdbaee2c604f to your computer and use it in GitHub Desktop.
Save n3tr/9e7b5889da7de69b9b54bdbaee2c604f to your computer and use it in GitHub Desktop.
TouchBarItemsIdentifier
// ViewController.swift
fileprivate extension NSTouchBarCustomizationIdentifier {
static let counterTouchBar = NSTouchBarCustomizationIdentifier("com.n3tr.countertouchbar.counter")
}
fileprivate extension NSTouchBarItemIdentifier {
static let increase = NSTouchBarItemIdentifier("com.n3tr.countertouchbar.increase")
static let decrease = NSTouchBarItemIdentifier("com.n3tr.countertouchbar.decrease")
static let counter = NSTouchBarItemIdentifier("com.n3tr.countertouchbar.counter")
}
class ViewController: NSViewController {
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment