Questions tagged [nstouchbar]

An object that provides dynamic contextual controls in the Touch Bar of supported models of MacBook Pro.

NSTouchBar provides an interface to the 2016 MacBook Pro's 'Touch Bar', a multitouch screen above the keyboard.

See the NSTouchBar documentation for more information.

85 questions
16
votes
2 answers

How get an item in control center of Touch Bar on the right?

The app TouchSwitcher add item beside lightscreen and volume items : https://hazeover.com/touchswitcher.html Is there a solution to display an item into the control strip on the right region of touch bar ? I can't find any help in official…
MattOZ
  • 313
  • 3
  • 7
14
votes
2 answers

Is there programable access to the Control Strip of the macOS Touch Bar?

The Control Strip is the static and global part of the macOS Touch Bar which is always visible in every context and app. While Apple provides full documentation about how to use the API to provide a contextual App Region in your macOS app, I…
miho
  • 11,765
  • 7
  • 42
  • 85
10
votes
1 answer

I can't use a custom Touch Bar in a status bar macOS app

I have an app that is displayed like a status bar app (in Info.plist "Application is agent (UIElement) = YES"). I have added a TouchBar with Interface Builder and I added some Touch Bar Buttons items on it. The problem is that the custom touch bar…
Cue
  • 2,952
  • 3
  • 33
  • 54
9
votes
2 answers

Create java applications with MacBook Pro touchbar support?

as the tile describe, I would love to have the ability to add some cool touchbar buttons to my java application for MacBook Pro 2016 users.. I've not seen yet if there is a way to implement it in java yet. Anyone got some knowledge on that?
Christian Moen
  • 1,253
  • 2
  • 17
  • 31
9
votes
3 answers

macOS Touch Bar Icons Location

New MacBook Pro's with Touch Bar, in macOS Sierra, icons for the system control strip, where would they be located? I looked under HD/System/Library/CoreServices, not there.....
Gizmodo
  • 3,151
  • 7
  • 45
  • 92
8
votes
2 answers

Has Apple released APIs for touch bar yet?

Apple just announced the new MacBook with the touch bar. Are there APIs that app developers can use? I can't seem to find any online yet. Does it support access from the browser via JavaScript? WebKit has force touch APIs to support it on four runs…
Sainath S.R
  • 3,074
  • 9
  • 41
  • 72
7
votes
2 answers

Update NSTouchBar on the fly to add/remove items programmatically

I'm currently implementing the NSTouchBar api to my macOS application. At this moment, the only touch bar I have has the main View Controller as its delegate and I can add items to it fine. The catch is, I need some of those items to appear only…
beeb
  • 1,187
  • 11
  • 32
6
votes
2 answers

How to show touch bar in a viewcontroller

I want to develop an app with touch bar. I searched on internet and saw some tutorials. They all make a demo with windowcontroller and just override makeTouchBar() or drag touchbar in storyboard then there is a touchbar. But I want to make touchbar…
bewils
  • 71
  • 5
5
votes
2 answers

Change touch bar settings programmatically via Terminal in MacOS High Sierra

I'd like to be able to toggle between 'Touch bar shows F1, F2, etc keys' and 'Touch bar shows expanded control strip' using defaults.write I've tried the following: I saved 'defaults read' to a file, changed the touch bar setting, then saved…
Vigoxin
  • 63
  • 7
5
votes
0 answers

programatically forcing function keys on Mac touch bar

I know that users can set specific apps to run with the function keys active on the touch bar by default in their system keyboard prefs as per https://support.apple.com/en-us/HT207240. But is there anyway for a developer to request this from within…
keymap
  • 864
  • 7
  • 16
5
votes
1 answer

Best practical way to validate NSTouchBar items

On AppKit, menu items and toolbar items have validateMenuItem(_:) and validateToolbarItem(_:) respectively. However, by new touch bar items, there is no such convenience method to validate appropriate items at the right moment. I'm now validating…
1024jp
  • 2,058
  • 1
  • 16
  • 25
4
votes
2 answers

How can I make my application's touch bar always visible on macOS?

I am making a macOS menu bar application which displays a fullscreen overlay. The user is able to control the opacity of this overlay via a slider in the menu bar. I wish to move these controls to the touch bar, because the application is used for…
jameshfisher
  • 34,029
  • 31
  • 121
  • 167
4
votes
0 answers

Java launch warning/error while interacting on MacBook Pro touchbar

I've been developing an application in java, and I've noticted that I get an warning/error while I touching the bar(like dragging up and down volume).. 2016-12-20 22:43:18.464 java[1247:84961] *** Assertion failure in -[NSTouch normalizedPosition],…
Christian Moen
  • 1,253
  • 2
  • 17
  • 31
4
votes
2 answers

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…
strangetimes
  • 4,953
  • 1
  • 34
  • 62
4
votes
1 answer

Xcode 8.1 missing 10.12.1 SDK when trying NSTouchbar

Excited to try out the new NSTouchBar APIs. Went to the developer site to get the sample code, and it crashes every time in Xcode 8.1 (build 8B62)saying I don't have the 10.12.1 SDK installed, even though I can add a deployment target of 10.12.1.
monotreme
  • 582
  • 1
  • 6
  • 20
1
2 3 4 5 6