message from RootViewController to CCLayer

in /ios/Appcontroller.mm

I can send message from CClayler to RootViewController with

void CCApplication::test(){

[[[[UIApplication sharedApplication] delegate] viewcontroller] XXXX];

}

wanna know how to send message from rootviewcontroller to particular CCLayer or CCNode

thanks for any info if helps

You should keep the reference of CCLayer or CCNode by yourself, and send message to them.
You can use RootViewController like this, because UIApplication is a singleton object.