cocoamacos-sierranstouchbarxcode8

How do you test NSTouchBar


I'm referring to the code here: NSTouchBar Catalog

How do you test this on a Macbook / Mac without a Touch Bar? I'm hoping we can still simulate it somehow? I've tried running this catalog on my Mac and I see an empty list (i.e. nothing's being displayed in the app).


Solution

  • There is a touch bar simulator. You need latest Xcode 8.1 and macOS 10.12.1.

    You will see "Show Touch Bar" at Window menu of Xcode.

    https://help.apple.com/xcode/mac/8.1/#/dev7a8cb8a8c

    BTW, my mac did not have touch bar simulator in the menu even after updating to macOS 10.12.1. I have installed macOS 10.12.1 directly from https://support.apple.com/kb/dl1897?locale=en_US and touch bar showed up.