Hi all. I’m having fun learning C++ using JUCE and hacking existing code. I’m having a bit of trouble organising my juce code in an elegant way. I have a class nested inside my networking class that is initialised within a page component in a tabbed component. Pointers to owners are passed down, so that when, for example, a callback in the nested class wants to change something in the tab page, I end up with code that looks something a bit like this . . .
… which works absolutely fine, but is a bit of an eyesore, is very confusing to maintain, and will cause problems sooner or later. Do I make the tab page globally accessible or something like that, or is there another neat solution? Sorry for the newbish questions and any suggestions or comments would be graciously received.