Do you remember ugly configuration of NSInvocation instances?
Set target and selector, set arguments from 2 and next... Awesome process, error prone indeed.
You can allow compiler to do most of work for you. Like correct stack frame allocation and arguments binding.
DIInvocation category contains useful methods to simplify your life and do it easy.
Just include NSObject+DIInvocation.[hm] files to your project.
You can call retainArguments method for produced invocation if you need that.
Invocations usage is a great technique for delegating calls from detached threads to the main thread.
Click to write an e-mail to our Support Service.