Thanks... actually after studying Cocos2d some more I've decided I won't need this method I make.
CCNode * RBObject::getNodeByID(const char *id);
Where my game object clas, RBObject, has a list of CCNode*
I decided to store important CCNodes, like CCSprite, with another pointer. It's a little more memory space but faster access time.