I'm working on a pet project which displays current cryptocurrency prices on the touch bar. I'm a web developer, but not a Swift developer, so it's slow going.
https://github.com/sharkattackhq/crypt
Right now, the basic functionality is in place, but of course the data is only displayed when the app window is active. I'd like to be able to view the data no matter which application is active, and the only way I can see of doing this would be to add a button to the Control Strip section of the Touch Bar.
How can I add a button to the control strip? There's no public API for this, but I can see that other, no-Apple Apps do it.
Only via private API, you need to connect
/System/Library/PrivateFrameworks/DFRFoundation.framework
Bridge:
Header:
And use it:
UPDATE 10.14
And real project as example - https://github.com/Toxblh/MTMR