Right now I know only 3 ways to schedule something that will run only once after a given time interval:
1. schedule some selector with interval, and then unschedule it in called selector
2. make an action with time delays and CallFunc
3. use the performSelector: method
For something I need now 1st method is not an option, and 2nd one is ok but too "ugly" for me. So can somebody make a patch because I don't know hot to do it, so there is one more method for schedule, like:
-(void) schedule: (SEL) selector interval:(ccTime)interval repeat:(BOOL) yesNo;
What I need and I can't use option 1, is to trigger several schedules with different time intervals and all of them should be executed. So if I unschedule scheduler in the called selector, my other schedulers wont run anymore. Of course I can count number of calls in the called selector and then unschedule it, but actually I need to trigger it random number of times, so I can't count it without some external counter.
Right now I am using performSelector: method and it works but I suppose I shouldn't mix those timers with cocos2d timers.
I hope there is some nice person who will make that patch :)