CCArray

hi friends
in new version cocos2d-x use ccarray and ccmutablearray removeed . and now how i can :
1: add ccarray to it
2: how can get object at index
3: how can get object in ccarray in other ccarray
how can add object to ccarray in other ccarray
thanks

The interfaces of CCMutableArray and CCArray are very similiar, so I think it’s easy to change your codes from CCMutableArray to CCArray.

i have problem with ccarray in ccarray
CCARRAY_FOR_EACH just work with CCObject and i can not found any whey to (add,remove,find) CCArray objects in other CCArray

You should force converting ‘CCObject**’ to ’CCArray**’.
CCObject* pObj;
CCArray* arr;
CCARRAY_FOREACH(arr, pObj)
{
CCArray* pElementArr = (CCArray*)pObj;
……
}