Anyone noticed that this NSTouchBar API is not support Objective-C, it is swift-only. Does it mean we would only code Swift for iOS/OS X some day?
The example in the middle is in Swift, regardless of which language you've selected.
But the API list at the bottom does reflect your current language selection.
"Swift is a successor to both the C and Objective-C languages."
-- https://developer.apple.com/swift/
" Swift is intended as a replacement for C-based languages (C, C++, and Objective-C)."
Also on Sierra, launchd and the Dock have been rewritten in Swift.