This tag should be used for programming questions related to modern MacBook Pros' 'Touch Bar', a wide multitouch screen above the keyboard, designed for accessing global and application-specific functions.
Questions tagged [macbookpro-touch-bar]
96 questions
2
votes
1 answer
Completely reinstall Xcode 9
I am writing from my 2016 15" MacBook Pro with macOS 10.12.6 and Xcode 9.1 installed and updated.
Since 9.0 I am experiencing very strange behaviours within Xcode, something that, with v8.x I was not encountering.
I tried to remove the app, reboot…

NotationMaster
- 390
- 3
- 17
2
votes
3 answers
How to identify actual touchBar hardware is available in an Mac book using obj c?
How to identify actual touchBar hardware is available in an Mac book using obj c code so that i can provide touchbar menu options.

Jeba Moses
- 809
- 8
- 25
2
votes
1 answer
How Does Xcode Use The Macbook Pro Touchbar?
I am looking at getting the 13 inch macbook pro with the touchbar. I am going to be using it for Xcode development. I was wondering how does Xcode use the touchbar. Meaning that what function keys for xcode come up on the touchbar?

DavidShefcik
- 45
- 2
- 7
1
vote
0 answers
How to show tkinter buttons in mac touch bar 2020
from tkinter import *
import PyTouchBar
PyTouchBar.set_customization_identifier("com.madrau.PyTouchBar.touchbar")
root = Tk()
starter = PyTouchBar.TouchBarItems.Button(title='играть',…

bohdan shelest
- 11
- 1
1
vote
2 answers
Getting error when running python code on tensorflow-metal on Macbook pro M1
I have successfully installed tensorflow-metal on my Macbook pro M1 in a separate environment, but when I run the following sample code:
import tensorflow as tf
from tensorflow.keras import datasets, layers, models
(train_images, train_labels),…

Small_J
- 43
- 1
- 7
1
vote
1 answer
How to show tkinter buttons in mac touch bar
I have a tkinter application and want to display some of its buttons in the Mac Touch Bar.
For Example
from tkinter import *
root = Tk()
send_button = Button(text = "Send",bg = 'sky blue',fg = 'black',font = "size 15",pady =…

Shaurya
- 13
- 3
1
vote
2 answers
Mac shortcuts: How to make cmd + delete delete a word backwards rather than the default option+delete?
I've been struggling to customize the backwards delete on mac by setting it to cmd + delete.
It seems like since the there is no label in the menu bar, its not a straightforward thing to do through System Preferences > Keyboard > Shortcuts.
Could…

Riccardo
- 115
- 11
1
vote
0 answers
Show TabView elements in Touch Bar - SwiftUI
I'm working on a Mac app (via Mac Catalyst), and I'm looking for a way to display TabView items in the Touch Bar as well...
I tried with the .touchBar modifier, with the targetEnvironment(macCatalyst) and also with #if os(macOS), but no luck...
Any…

pierofrezza
- 59
- 8
1
vote
2 answers
Using AppleScript to uncheck HDR in system preferences
I have a 4K HDR Monitor, and sometimes Macbook causes the colors to be washed, the fix is to Disable and then Re-Enable HDR.
I am trying to create an AppleScript to then incorporate that in Automator to do so.
I was able to get some traction but not…

Meir Miyara
- 27
- 7
1
vote
0 answers
Electron: TouchBarButton click callback wrong parameter
I'm currently working on integrating MacBook TouchBar on a basic Electron Project (like a Hello World :p ).
My project is very simple: I had an array of String which represent each a Directory name, I want to create a TouchBarButton for each item in…

iStornZ
- 603
- 1
- 8
- 19
1
vote
0 answers
SwiftUI equivalent of popoverTouchBar and pressAndHoldTouchBar
SwiftUI Touch Bar support seems quite limited.
Is there an equivalent of popoverTouchBar and pressAndHoldTouchBar?
I tried doing a popover as follows:
.touchBar {
Button(action: { self.showRadiusTouchBarSlider.toggle() }) {
…

Taylor
- 5,871
- 2
- 30
- 64
1
vote
1 answer
Xcode 11.4.1 Not Responding
every time Xcode Not Responding when i try to make some changes in code or in MainStoryboard or when i try to make new swift file, i always get this message "your system has run out of application memory"
This Is my Ram Without Xcode
Ram When i…

Ninder Chand
- 389
- 1
- 5
- 15
1
vote
0 answers
Persistent Touchbar with Electron
Can an Electron app present a persistent touchbar layout across applications?
With the sample code here I'm able to interact with touch bar elements while the app is foregrounded, but the buttons disappear when switching to another…

thekevinscott
- 5,263
- 10
- 44
- 57
1
vote
0 answers
Hide buttons in Touch Bar depending on a condition
I just got a new MacBook Pro with a Touch Bar and I wanted to create an extension specific for Angular apps.
The purpose of the extension was to provide some buttons on the Touch Bar so the user can like, generate a component or rather launch the…

choc
- 11
- 1
1
vote
0 answers
Android Studio will not open after clear cache/invalidate
My Android Studio was running slow on my Macbook so I cleared cache and invalidated. When attempting to relaunch the app, it would animate like it was going to open but then just stopped. I waited several minutes and still no luck. I deleted the app…

QThompson
- 1,599
- 3
- 16
- 40