ReactiveCocoa/ReactiveCocoa — pull request #438 by kastiglione (2013-04-18 06:56:32+00:00)
Title: Lift with arguments array

I asked about passing an array of arguments to `-rac_liftSelector:withObjects:` in #436, and since nothing exists to do this, I've implemented it and offer for consideration.

With this implementation, the original varargs methods, `-rac_liftSelector:withObjects:` and `-rac_liftBlock:withArguments:` now are implemented on top of `-rac_liftSelector:withObjectsFromArray:` and `-rac_liftBlock:withArgumentsFromArray:` respectively. The former now wrap the varargs into an array and forward to the latter.

In addition, I extracted out the lifting strategy shared between `-rac_liftSelector:…` and `-rac_liftBlock:…` into a function called `RACLiftAndCallBlock()`. I chose a function because it's private and there didn't seem to be any reason to add another method to `NSObject`. Is this acceptable, or should it be made into a `rac_` prefixed method?

If this is something potentially worth merging, I have some questions about documentation and testing.

:cocktail: