© Wallace Wang 2017

Wallace Wang, macOS Programming for Absolute Beginners, 10.1007/978-1-4842-2662-9_23

23. Programming the Touch Bar

Wallace Wang

(1)San Diego, California, USA

The latest input device for Macintosh computers is the Touch Bar , which appears above the keyboard where the row of function keys used to appear. The Touch Bar displays contextual shortcuts depending on what you’re doing at the time. For example, if you’re typing, the Touch Bar might display suggested words that you can tap so you don’t have to type the entire word out. If you’re editing a video, the Touch Bar lets you scroll back and forth through the video.

Because the Touch Bar offers a new way to interact with a Macintosh, all macOS programs will need to know how to ...

Get macOS Programming for Absolute Beginners: Developing Apps Using Swift and Xcode now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.