Experimental support for Touch Bar

Discussion of Transmission that doesn't fit in the other categories
Post Reply
misav
Posts: 1
Joined: Sat Dec 03, 2016 7:04 am

Experimental support for Touch Bar

Post by misav »

I'm a person who knows a bit of AppKit and has a bit of free time. I wanted to add Touch Bar support to a few open source apps. At first I tried to add it to Audacity, but the build file said that Audacity won't compile against anything newer than 10.6 SDK… gross. Anyway, I decided to look for open source apps that already had a Cocoa GUI… and I landed on Transmission. I added really rudimentary support for the Touch Bar… just basically mimicking the Toolbar. I haven't put much thought into the code I wrote, so I'm not yet planning to submit a pull request or anything. I'm uploading the source code, not the binary, because even if you trust me you really shouldn't be running binaries you download from strangers online.
Almost all of the code changes are in Controller.m and MainMenu.xib. There's an enum defining constants and an IBAction named performTouchBarAction that basically just connects the Touch Bar buttons in IB to the methods the toolbar buttons normally use.

https://www.dropbox.com/s/7optpq4a61vh9 ... r.zip?dl=0
Post Reply