I have made CC_SYNTHESIZE property in one class and trying to access it in another class and facing problem..
I have used 2 classes vrope.h to make property like this..
// std::vector vSticks;
And in HelloWorld.h file i have ropes array like this..
Now in HelloWorld.m file i have used like this in ccTouchesMoved
for(rope = ropes~~>begin;rope != ropes~~>end();++rope)
for (stick = (*rope)->getSticks()->begin();stick != (*rope)~~>getSticks~~>end;++stick)
CCPoint pa = stick~~>getPointA;
CCPoint pb = stick~~>getPointB();
I have tried also calling (rope)->getSticks()->begin() but that is also not working..
The upper for loop of ropes is working and i can access its methods but i am not getting how to work for the inner for loop to access sticks..
Has anybody know what should be the problem?