I am currently making an objective c program in which there are 4 shapes on the screen. The shapes must be highlighted based on a sequence of ints, and only one shape must be highlighted at a time. Thus, I must add a delay after each shape has been highlighted. Using 'sleep' causes the program to have very strange behavior, and the only other way I can think of delaying it would be using 'performSelector:withObject:afterDelay:' but the the method I wish to pass as the selector takes a number of arguments, which it will not allow.
So my question is this: is it possible to pass a method with a number of arguments into 'performSelector:withObject:afterDelay?' If not, what other ways are there to add a delay to the program without sleeping a thread?
Any help is appreciated.