im getting error when i try to loop CCDictionary from other object :
this is the error im getting in the loop :
Expected ';' at end of declaration
No member named 'gemsDictionarypElement' in 'cocos2d::CCDictElement'
GameController::GameController(GameLayer* gameLayer)
{
gemsDictionary = CCDictionary::create();
gemsDictionary->retain();
}
latter in this object i fill the Dictionary with elements and keys
in othere class instanse i try to loop the dictionary but im getting error:
CCDictElement* pElement = NULL;
CCDICT_FOREACH(m_pGameController->gemsDictionary, pElement) <--- Error here
{
}
what im missing here ?