TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

NSTouchBar API Reference

136 pointsby tempwover 8 years ago

19 comments

leonardoeover 8 years ago
I can&#x27;t wait to write a nyan cat app for the TouchBar.<p>Hopefully the next XCode build will include a TouchBar simulator so there&#x27;s no need for me to get a new MBP in order to work on this.
评论 #12812391 未加载
评论 #12812205 未加载
评论 #12882749 未加载
评论 #12817857 未加载
评论 #12812529 未加载
评论 #12812718 未加载
评论 #12812219 未加载
evanosaurusover 8 years ago
&gt;Do not show alerts in the Touch Bar, and do not use the Touch Bar for widgets.<p>It&#x27;s interesting, then, that they explicitly showed the Touch Bar being used for alerts in the design video (when the user received a FaceTime call).
评论 #12813039 未加载
评论 #12813090 未加载
评论 #12812324 未加载
评论 #12817926 未加载
jasonjeiover 8 years ago
When the OS hasn&#x27;t initialized Touch Bar, what happens to the Touch Bar? Is there a default Touch Bar loaded in firmware in cases of Linux or Windows in Boot Camp?
评论 #12811932 未加载
评论 #12812263 未加载
评论 #12812934 未加载
CalChrisover 8 years ago
Well, the Slashdot article gets it right:<p><pre><code> Apple&#x27;s New MacBook Pro Requires a $25 Dongle To Charge Your iOS Device </code></pre> I like the TouchBar. I really like the Security Enclave. I&#x27;m good with losing most of the ports. But they shoulda kept a standard USB port.<p>So this will push my upgrade back not forward.<p><a href="https:&#x2F;&#x2F;hardware.slashdot.org&#x2F;story&#x2F;16&#x2F;10&#x2F;27&#x2F;2226215&#x2F;apples-new-macbook-pro-requires-a-25-dongle-to-charge-your-ios-device" rel="nofollow">https:&#x2F;&#x2F;hardware.slashdot.org&#x2F;story&#x2F;16&#x2F;10&#x2F;27&#x2F;2226215&#x2F;apples-...</a>
评论 #12812381 未加载
评论 #12812811 未加载
评论 #12812476 未加载
评论 #12813051 未加载
orangeaover 8 years ago
Too bad there isn&#x27;t a way to have your app control the touch bar even when it isn&#x27;t in focus. I would have liked to write a background application that overrides it for personal use. I already have one that does that for the caps lock key.
评论 #12812071 未加载
评论 #12812908 未加载
评论 #12814316 未加载
tomeldersover 8 years ago
Is there any policy to prevent apps displaying ads in the touch bar?
评论 #12811917 未加载
评论 #12811862 未加载
评论 #12811887 未加载
gniquilover 8 years ago
So who&#x27;s gonna be working on Sublime&#x2F;Atom&#x2F;Vim&#x2F;Emacs integration on this. Shit, imagine all the things one can do with that bar (multi-touch, slidable, swippable).
评论 #12813293 未加载
ben174over 8 years ago
Looking forward to seeing if a web standard comes of this. Would love to be able to make use of this additional UI in my web apps.
评论 #12812179 未加载
评论 #12812196 未加载
评论 #12813179 未加载
cobbzillaover 8 years ago
I like the idea of the TouchBar, but I just wish they would have kept a physical escape key. As a heavy emacs user, I&#x27;m really going to miss it.
评论 #12813693 未加载
mthomsover 8 years ago
If someone can figure out how to trick legacy MacBooks into displaying this bar on the screen of a plugged in iPhone&#x2F;iPad then you can take my money now.<p>There are so many old iPhone and iPads out there just waiting to be repurposed for something like this.<p>Heck, I&#x27;d even be interested in a reasonably priced (&lt; $150) external touch strip as an accessory for my current MBP.
评论 #12813250 未加载
评论 #12813034 未加载
metaprinterover 8 years ago
is the touch bar accessible to folks using screen readers?
评论 #12813083 未加载
评论 #12812479 未加载
评论 #12812588 未加载
emilongover 8 years ago
&gt; Such an instance is sometimes called, simply, a <i>bar</i>.<p>Kinda funny that a product that was only officially announced today already has a vernacular. :)
评论 #12811967 未加载
评论 #12812677 未加载
ranmanover 8 years ago
So when will there be a WebKit API for this?
评论 #12812354 未加载
ideamonkover 8 years ago
TouchBar will play nice with digital audio workstations like Logic Pro &#x2F; Live, etc. I&#x27;ll be happy to record pitch&#x2F;mod&#x2F;any VST param automations on a touch strip.<p>DJ-ing apps could show up cue points and let you trigger them.<p>While fullscreen mode on macOS advocated distraction-free focus, TouchBar takes a step backwards.
adomanicoover 8 years ago
Actually very pleasantly surprised that this version 1 API has this much publicly customizable features. My guess was that this would be locked down in the first new gen MacBooks
评论 #12814763 未加载
tarikjnover 8 years ago
I want a device API for third party keyboards, and a split toolbar more for split keyboards. So that third party ergonomic keyboards can be developed building on this.
increment_iover 8 years ago
Interesting they gave it the legacy &#x27;NextStep&#x27; prefix. Although I suppose it makes sense given its a Mac-specific feature.
评论 #12812462 未加载
评论 #12814373 未加载
DarkByteover 8 years ago
I wonder if the demonstrations had haptic feedback. If not, I wonder if we can use NSHapticFeedbackPerformer to implement it.
评论 #12812725 未加载
tcperover 8 years ago
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&#x2F;OS X some day?
评论 #12812260 未加载
评论 #12813634 未加载
评论 #12812281 未加载