accessing containing class variable from subclass
Hi everyone!
I know this is gonna sound "n00b", but i recently moved to obj-c, so i'm not very familiar with it yet.
Here's my question :
I have a class A with a member variable which is a class B.
So the class B does NOT inherit from class A, but it is a subclass (is this the right term?) of the class A.
Now, in one of the methods of class B, i need to access a member variable of class A which is public, and i can't figure out how to do it!!
Please do not give me an answer such as "why don't you change the architecture" because this is just a simple example, and my real architecture is way more complicated, but the problem summarize as above.
I tried to use "superclass" and "super" but i think this is only for inherited classes, right?
Can someone help me?
|