What are the parenthesis doing in
[s addChild: [restartAction() node]];"
or what is that feature called? Thanks.
EDIT: I think the definition of restartAction() is
Class restartAction()
{
NSString *r = transitions[sceneIdx];
Class c = NSClassFromString(r);
return c;
}
transitions[someint] returns a string. This string is used to return an object. I still don't understand why the parenthesis are needed though. I am expecting a colon after the parenthesis.