scheduleOnce() with additional params?

scheduleOnce() with additional params?
0.0 0



is there a way I can schedule a method to be called once in the future and passing it additional params that I provide at the time I schedule it?

I am not sure, but it looks like CC_CALLBACK_1 is basically what I want to create:
Foo* secondParam = new Foo(“bar”);
myCallback = CC_CALLBACK_1(MyClass::myMethod, this, secondParam)@
scheduleOnce(myCallback, delay);
and then later, the MyClass::myMethod method is called with the secondParam value
void MyClass::myMethod(float dt, Foo* foo) {
// foo == secondParam(“bar”) from above

Does cocos2d-x provide a mechanism for this already?

Thanks for the help