{"id":16130,"date":"2016-10-27T20:44:28","date_gmt":"2016-10-28T00:44:28","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=16130"},"modified":"2018-09-10T16:24:16","modified_gmt":"2018-09-10T20:24:16","slug":"touch-bar","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2016\/10\/27\/touch-bar\/","title":{"rendered":"Touch Bar"},"content":{"rendered":"<p><a href=\"https:\/\/developer.apple.com\/library\/content\/documentation\/UserExperience\/Conceptual\/OSXHIGuidelines\/AbouttheTouchBar.html#\/\/apple_ref\/doc\/uid\/20000957-CH104-SW1\">macOS Human Interface Guidelines<\/a>:<\/p>\n<blockquote cite=\"https:\/\/developer.apple.com\/library\/content\/documentation\/UserExperience\/Conceptual\/OSXHIGuidelines\/AbouttheTouchBar.html#\/\/apple_ref\/doc\/uid\/20000957-CH104-SW1\">\n<p>The Touch Bar&mdash;located above the keyboard on supported MacBook Pro models&mdash;is a Retina display and input device that provides dynamic interface controls for interacting with content on the main screen. These controls offer quick access to system-level and app-specific functionality based on the current context. For example, when the user types text in a document, the Touch Bar might include controls for adjusting the font face and size. When the user views a map, the Touch Bar could give quick, one-tap access to gas stations, lodging, and restaurants near the displayed location. A Touch ID sensor to the right of the Touch Bar allows fingerprint authentication for logging into the computer and approval of App Store and Apple Pay purchases.<\/p>\n<p>By default, the right side of the Touch Bar displays an expandable Control Strip that includes controls for performing system-level tasks such as invoking Siri, adjusting the brightness of the main display, and changing the volume level. Previously, users accessed most of these controls with a top row of physical function keys. You can implement app-specific controls in the app region to the left of the Control Strip. An Esc (Escape) button or other system-provided button may appear to the left of the app region, depending on context.<\/p>\n<p>The Touch Bar is configurable. The user can remove items from the Control Strip or hide it completely, in which case only app controls are displayed. The user can also hide the app region, displaying an expanded Control Strip. Some apps also allow users to add and remove items in the app region.<\/p>\n<\/blockquote>\n<p><a href=\"https:\/\/developer.apple.com\/reference\/appkit\/nstouchbar\">NSTouchBar<\/a>:<\/p>\n<blockquote cite=\"https:\/\/developer.apple.com\/reference\/appkit\/nstouchbar\"><p>You define a bar to provide controls relevant to the user&rsquo;s context. Each such control is an instance of the <code>NSTouchBarItem<\/code> class, sometimes called, simply, an <em>item<\/em>.<\/p>\n<p>You can provide many bars within your app; macOS frameworks can provide bars as well. For example, an app that uses standard AppKit objects, such as text fields (instances of the <code>NSTextField<\/code> class), obtains appropriate bars along with relevant items automatically.<\/p>\n<p>[&#8230;]<\/p>\n<p>To use the Touch Bar, define bars in objects in your app&rsquo;s responder chain. At runtime, the system traverses the responder chain to discover, combine, and show bars from your app and from frameworks you link against.<\/p>\n<p>You can configure a bar to support dynamic composition, in which the system shows it in an expanded form that contains items from bars lower in the responder chain. Because of the dynamic composition and placement of items shown on the Touch Bar, always ensure that your bars appear as you expect them to, testing on the versions of macOS that you support.<\/p>\n<p>[&#8230;]<\/p>\n<p>Because of the physical geometry of the Touch Bar, touch events passed to gesture recognizers have only a meaningful x, or horizontal, component.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/jamesthomson\/status\/791765616130658304\">James Thomson<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/jamesthomson\/status\/791765616130658304\"><p>&ldquo;There is no need, and no API, for your app to know whether or not there is a Touch Bar available.&ldquo; :-(<\/p><\/blockquote>\n<blockquote cite=\"https:\/\/twitter.com\/jamesthomson\/status\/791771310816985088\"><p>Initial thoughts on the NSTouchBar API are that it looks pretty comprehensive, and you can put your own custom views in there.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/zwaldowski\/status\/791746622392766464\">Zach Waldowski<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/zwaldowski\/status\/791746622392766464\"><p>Oh, wow, this is really neat. Xcode adds a persistent Debugger menu to the control strip - even when in another app.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/schwa\/status\/791765248009048064\">Jonathan Wight<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/schwa\/status\/791765248009048064\"><p>If anyone is looking for the Touch Bar simulator option in Xcode 8.1 it&rsquo;s in the Window menu.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/thequinntaylor\/status\/791770263897518081\">Quinn Taylor<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/thequinntaylor\/status\/791770263897518081\"><p>PSA: Developing for Touch Bar requires a newer 10.12.1 build. If you already updated to 10.12.1, you can get it at <a href=\"https:\/\/support.apple.com\/kb\/dl1897?locale=en_US\">support.apple.com<\/a>.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/lapcatsoftware\/status\/791772272579211265\">Jeff Johnson<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/lapcatsoftware\/status\/791772272579211265\"><p>I don&rsquo;t understand how app-specific toolbars are supposed to be this great innovation. Don&rsquo;t we already have that? In the app UI?<\/p><\/blockquote>\n\n<p><a href=\"http:\/\/cdm.link\/2016\/10\/apples-computer-vision-looks-backward-others-look-forward\/\">Peter Kirn<\/a>:<\/p>\n<blockquote cite=\"http:\/\/cdm.link\/2016\/10\/apples-computer-vision-looks-backward-others-look-forward\/\">\n<p>If you asked video editors if they wanted to do delicate edits via a tiny, imprecise touch strip on a laptop keyboard, of course they&rsquo;d tell you you were nuts.<\/p>\n<p>So this is bad for consumers, but at least they&rsquo;ll see the Touch Bar as a gimmick on purchase and then ignore it. For pros, it&rsquo;s actually an insult.<\/p>\n<p>[&#8230;]<\/p>\n<p>I think music is always a good test of how expressive an interface was. And bringing a DJ app onstage &#8211; as Apple did with djay &#8211; proves how awful this tiny touch strip is. Watching someone DJ with the top of a keyboard was just embarrassing, doubly so from the company that makes the iPad and as recently as this year&rsquo;s WWDC showed off its ability to be used by blind people.<\/p><\/blockquote>\n\n<p>Update (2016-10-28): <a href=\"https:\/\/twitter.com\/marcedwards\/status\/791863873318117376\">Marc Edwards<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/marcedwards\/status\/791863873318117376\"><p>The new Touch Bar, as seen in Pages, Keynote, Numbers, iMovie, GarageBand, Terminal, Xcode and other apps.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/www.macstories.net\/mac\/new-macbook-pro-touch-bar-t1-chip-run-on-a-variant-of-watchos\/\">Federico Viticci<\/a>:<\/p>\n<blockquote cite=\"https:\/\/www.macstories.net\/mac\/new-macbook-pro-touch-bar-t1-chip-run-on-a-variant-of-watchos\/\">\n<p>Interesting <a href=\"https:\/\/twitter.com\/viticci\/timelines\/791954024928976897?ref_src=twsrc%5Etfw\">findings by Steve Troughton-Smith<\/a>: the Touch Bar on the new MacBook Pro appears to be running on a variant of watchOS under the hood, with the T1 SoC handling security (primarily) for Touch ID as well as the bridge between macOS and the Touch Bar (over a USB connection).<\/p>\n<\/blockquote>\n\n<p><a href=\"http:\/\/arstechnica.com\/apple\/2016\/10\/15-hours-with-the-13-macbook-pro-and-how-apples-t1-bridges-arm-and-intel\/\">Andrew Cunningham<\/a>:<\/p>\n<blockquote cite=\"http:\/\/arstechnica.com\/apple\/2016\/10\/15-hours-with-the-13-macbook-pro-and-how-apples-t1-bridges-arm-and-intel\/\"><p>The T1 and the way it interacts with the rest of macOS is either a weird kludge or a great example of Apple&rsquo;s synergy&mdash;Apple has essentially embedded a miniature iOS device with custom silicon in these Macs so it wouldn&rsquo;t have to rebuild Touch ID and Apple Pay from scratch.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/blog.agilebits.com\/2016\/10\/28\/having-fun-with-touch-id-and-the-touch-bar-in-1password\/\">Jeff Shiner<\/a>:<\/p>\n<blockquote cite=\"https:\/\/blog.agilebits.com\/2016\/10\/28\/having-fun-with-touch-id-and-the-touch-bar-in-1password\/\"><p>Now that the new MacBook Pro&rsquo;s have Touch ID we can bring that same great [1Password] feeling you are used to on iPhone to your Mac, and it looks pretty darn cool too. Take a look for yourself and see!<\/p><\/blockquote>\n\n<p>Update (2016-10-29): <a href=\"http:\/\/daringfireball.net\/linked\/2016\/10\/28\/panzarino-touch-bar\">John Gruber<\/a>:<\/p>\n<blockquote cite=\"http:\/\/daringfireball.net\/linked\/2016\/10\/28\/panzarino-touch-bar\"><p>The Touch Bar is not the answer to &ldquo;How do we bring touchscreens to the Mac?&rdquo;, because that question is not actually a problem. The Touch Bar is the answer to &ldquo;These keyboard F-keys are cryptic and inflexible &mdash; what can we replace them with that&rsquo;s better?&rdquo; That&rsquo;s an actual problem.<\/p><\/blockquote>\n\n<p><a href=\"http:\/\/pxlnv.com\/linklog\/touch-bar-pro-users\/\">Nick Heer<\/a>:<\/p>\n<blockquote cite=\"http:\/\/pxlnv.com\/linklog\/touch-bar-pro-users\/\"><p>Pro users may scoff that they don&rsquo;t need it for the applications they use regularly, but that&rsquo;s missing the point. The Touch Bar is for the applications or commands that you use <em>less<\/em> frequently.<\/p><\/blockquote>\n\n<p>Update (2016-10-30): <a href=\"https:\/\/twitter.com\/zats\/status\/792239071749734401\">Sash Zats<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/zats\/status\/792239071749734401\"><p>More and more Touch Bar makes sense: extending dialog buttons into keyboard area. I&rsquo;m really curious to try what it feels like IRL.<\/p><\/blockquote>\n\n<p>Update (2016-11-02): <a href=\"http:\/\/www.asymco.com\/2016\/11\/02\/wherefore-art-thou-macintosh\/\">Horace Dediu<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.asymco.com\/2016\/11\/02\/wherefore-art-thou-macintosh\/\">\n<p>This is a leap forward and a big deal. For 32 years the&nbsp;UX model of the Mac has been two-handed typing with one handed gesturing. Now we have the option of two-handed indirect manipulation: one hand on the touchbar and one hand on the touchpad.<\/p>\n<\/blockquote>\n\n<p><a href=\"http:\/\/shapeof.com\/archives\/2016\/11\/notes_on_working_with_nstouchbar_apis.html\">Gus Mueller<\/a>:<\/p>\n<blockquote cite=\"http:\/\/shapeof.com\/archives\/2016\/11\/notes_on_working_with_nstouchbar_apis.html\"><p>I was initially worried that classes would be pretty sparse and I&rsquo;d have to write a bunch of custom subviews to get anything reasonable to show up on Touch Bar, but to my surprise the API seems pretty well fleshed out.<\/p>\n<p>[&#8230;]<\/p>\n<p>I get the feeling this was worked on for a number of years and heavily refined, and was used internally by a number of applications. Which of course makes sense, but not something I had expected.<\/p><\/blockquote>\n\n<p><a href=\"http:\/\/bitsplitting.org\/2016\/10\/31\/touch-bar-everywhere\/\">Daniel Jalkut<\/a>:<\/p>\n<blockquote cite=\"http:\/\/bitsplitting.org\/2016\/10\/31\/touch-bar-everywhere\/\"><p>I think Apple intends to push the Touch Bar as as widely as it possibly can. The current MacBook Pro lineup is the most practical computer to debut the feature, but as it becomes possible to bundle it with external keyboards, and on notebook computers at every price point, they will do so.<\/p>\n<p>[&#8230;]<\/p>\n<p>I find it impossible to believe that Apple would go to all this work, both on the Touch Bar itself, and across the entire range of its own apps and OS features, unless it had a grand vision for the Touch Bar that extends way beyond the internal keyboard of its premium notebook computers.<\/p><\/blockquote>\n\n<p>Update (2016-11-05): <a href=\"http:\/\/www.theregister.co.uk\/2016\/11\/03\/why_apples_adaptive_touch_bar_will_flop\/\">Andrew Orlowski<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.theregister.co.uk\/2016\/11\/03\/why_apples_adaptive_touch_bar_will_flop\/\"><p>Last week Apple replaced physical hardware function keys on its new laptops with a touch sensitive OLED strip, the &ldquo;Touch Bar&rdquo;. This isn&rsquo;t an original idea, and it has failed spectacularly when introduced to the market.<\/p><p>Just two years ago Lenovo tried this with its second generation Yoga. Users hated it, and the change wasn&rsquo;t repeated for 2015.<\/p><\/blockquote>\n\n<p><a href=\"http:\/\/benjaminmayo.co.uk\/macbook-pro-touch-bar-screenshots\">Benjamin Mayo<\/a>:<\/p>\n<blockquote cite=\"http:\/\/benjaminmayo.co.uk\/macbook-pro-touch-bar-screenshots\"><p>Several comments derided the Calculator Touch Bar interface as stupid and unnecessary. It may be simple and &lsquo;boring&rsquo; but I do believe it is useful. Putting buttons for common math operations right next to the number keys is incredibly convenient.<\/p>\n<p>On a traditional keyboard, the &lsquo;add&rsquo; and &lsquo;equals&rsquo; characters are on the same key, next to backspace. To sum, you have to press the Shift key and the &lsquo;+=&rsquo; key simultaneously. This requires a surprising degree of mental coordination to do when your brain is primarily occupied by typing in a long string of numbers.<\/p><\/blockquote>\n\n<p>Update (2016-11-17): <a href=\"https:\/\/owensd.io\/2016\/11\/16\/the-touch-bar\/\">David Owens II<\/a>:<\/p>\n<blockquote cite=\"https:\/\/owensd.io\/2016\/11\/16\/the-touch-bar\/\">\n<p>The <em>only<\/em> thing I&rsquo;ve liked about it the Touch Bar so far is the Touch ID integration. That&rsquo;s been nice. However, if there was a proper 15&rdquo; model with function keys, I&rsquo;d return this model tomorrow morning.<\/p>\n<\/blockquote>\n\n<p>Update (2016-11-18): <a href=\"https:\/\/owensd.io\/2016\/11\/17\/more-touch-bar-thoughts\/\">David Owens II<\/a>:<\/p>\n<blockquote cite=\"https:\/\/owensd.io\/2016\/11\/17\/more-touch-bar-thoughts\/\"><p>I&rsquo;m hopeful that things will get better. Maybe the control strip API support was just not ready yet (it is already a super buggy area. Once you have iTunes or Xcode open, you&rsquo;ll get an empty icon in the control strip).<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/myfreakinname.blogspot.com\/2016\/11\/first-touch-macbook-pro-fimp.html\">Ruffin Bailey<\/a>:<\/p>\n<blockquote cite=\"https:\/\/myfreakinname.blogspot.com\/2016\/11\/first-touch-macbook-pro-fimp.html\"><p>When I tried Mail, I caught this Touch Bar menu (which, again, I&rsquo;m arguing is essentially a mouse-free, gesture-aware context menu)<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/macperformanceguide.com\/blog\/2016\/20161118_0800-Apple2016MacBookPro-touchbar.html\">Lloyd Chambers<\/a>:<\/p>\n<blockquote cite=\"https:\/\/macperformanceguide.com\/blog\/2016\/20161118_0800-Apple2016MacBookPro-touchbar.html\"><p>While I have used the touchbar for little as yet, I am already a &lsquo;fan&rsquo; because it is saving me time: every time I am prompted for an administrator password (a lot, when I doing certain things), I just touch the touchbar and my fingerprint instantly takes care of that pesky password dialog.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/marcoarment\/status\/799706969825112065\">Marco Arment<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/marcoarment\/status\/799706969825112065\"><p>Touch Bar looks a bit blurry in real life. Notice the purple\/green fringes on left\/right of white. Bad subpixel AA, or inevitable from OLED?<\/p><\/blockquote>\n\n<p>Update (2017-01-11): <a href=\"http:\/\/www.jeffgeerling.com\/blog\/2016\/tale-two-apples\">Jeff Geerling<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.jeffgeerling.com\/blog\/2016\/tale-two-apples\"><p>Apple: I implore you, as a long-time Mac user who also invests in the rest of your ecosystem, but needs and uses a Mac daily&mdash;focus on delighting your customers, not on making new things for the sake of making new things. The Touch Bar is a <em>faux pas<\/em> on par with the G4 Cube and the All-in-one G3. Let&rsquo;s cut it off now and focus instead on features of the MacBook Pro that make it the best &lsquo;Pro&rsquo; laptop you can buy.<\/p><\/blockquote>\n\n<p id=\"touch-bar-update-2018-09-10\">Update (2018-09-10): <a href=\"https:\/\/twitter.com\/SamiHonkonen\/status\/1036540077327958016\">Sami Honkonen<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/SamiHonkonen\/status\/1036540077327958016\">\n<p>Whoever said the new Macbook Pro #TouchBar is useless was dead wrong! #KnightRider #Kitt<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>macOS Human Interface Guidelines: The Touch Bar&mdash;located above the keyboard on supported MacBook Pro models&mdash;is a Retina display and input device that provides dynamic interface controls for interacting with content on the main screen. These controls offer quick access to system-level and app-specific functionality based on the current context. For example, when the user types [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2018-09-10T20:24:18Z","apple_news_api_id":"cf2d1a2e-debb-4dae-8b24-3045a1722d50","apple_news_api_modified_at":"2018-09-10T20:24:20Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/Azy0aLt67Ta6LJDBFoXItUA","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[284,100,1381,71,1434,573,1212,226],"class_list":["post-16130","post","type-post","status-publish","format-standard","hentry","category-technology","tag-1password","tag-macbookpro","tag-macos-10-12","tag-programming","tag-touch-bar","tag-touch-id","tag-watchos","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/16130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=16130"}],"version-history":[{"count":19,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/16130\/revisions"}],"predecessor-version":[{"id":22708,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/16130\/revisions\/22708"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=16130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=16130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=16130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}