Fork me on GitHub

Invocation Producer

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.
Requirements: Mac OS X 10.5 or later Download: version 1.0, Jun 24, 2011 from GitHub

Click to write an e-mail to our Support Service.