I´m currently playing around with an app that's creating its own touchbar layout. Only simple buttons with text that shows up.
The thing is that I have a WindowController and a ViewController. The WindowController makes the touchbar with its buttons.
But what I want to do is in the ViewController when I press a button I want the touchbar to change, like if you would update it.
So my question is, how do I from the ViewController get access to the touchbar created in the windowController
?
The relation is WindowController (creating touchbar, setting 2 default buttons and showing it) -> ViewController (button to change touchbar)
Any ideas? I'm new to Mac development so please call me an idiot and give me a lead :D