This one's trickier to explain: I have ClassA which has MethodA, that does some stuff to some objects in ClassA, let's say it sets a couple of labels.
ClassA has also created an instance of ClassB, which is a sidebar view. I need ClassB to perform the same stuff to objects in ClassA as MethodA, updating those labels inside that instance of ClassA.
I need ClassB to be able to call MethodA, but have it act on the specific instance of ClassA that created that instance of ClassB.
The classes (at present at least) do not inherit from one another, since they don't actually share anything yet. I fill some data from ClassA into ClassB's labels, and now I need to do the opposite.
I can't call [super MethodA] from within ClassB, because they don't inherit. What I need is something analogous to a [parent methodA], which would call that method in the class that created this ClassB object, and have it act on that specific instance of ClassA.
Does such a thing exist? Apologies, jumbled post, and I'm not sure what to search for for a vague question like this.