Hi,
The NSObject
method performSelector:withObject:afterDelay:
allows me to invoke a method on the object with an object argument after a certain time. It cannot be used for methods with a non-object argument (e.g. ints, floats, structs, non-object pointers, etc.).
What is the simplest way to achieve the same thing with a method with a non-object argument? I know that for regular performSelector:withObject:
, the solution is to use NSInvocation
(which by the way is really complicated). But I don't know how to handle the "delay" part.
Thanks,