allending/Kiwi — pull request #178 by eraserhd (2012-12-11 03:05:08+00:00)
Title: Support stubbing KVC methods

This adds support for stubbing valueForKey:, valueForKeyPath:, setValue:forKey:, and setValue:forKeyPath:.

These have private implementations on NSObject even though NSObject doesn't formally adopt the NSKeyValueCoding protocol. As a result, calls to these methods on a mock (without this pull request) call the NSObject implementations, which is never the right thing to do on a mock.

This pull request overrides these methods to make them stubbable.