RestKit/RestKit — pull request #1023 by CFKevinRef (2012-11-05 18:28:55+00:00)
Title: Take KVC scalar/structure support into account when inspecting properties.

RestKit has the advantage of relying heavily on Key-Value Coding, so KVC's auto-wrapping and unwrapping can be expected and used to our benefit.

The particular implementation in this pull request was chosen mainly to touch as little as possible, but it has worked well for me as-is. Maybe the `+kvcClass...` methods should return a sentinel for `id` or for non-wrappable types like selectors, voids, and pointers, though it doesn't seem necessary. Right now `Nil` is returned for either case. The non-mappable values are left to be something else's problem and RestKit will perform no explicit transformation during a mapping operation.

This setup requires KVC compliant target object properties, though in practice I've found that only `setNilValueForKey:` needs to be implemented on the target object when supporting KVC auto-boxing for scalar properties like this.

Also while making the required changes in `RKPropertyInspector+CoreData`, I added a check for `NSBooleanAttributeType` to shuttle around wrapped boolean properties as `NSCFBoolean` wherever possible.

Anyway, thanks for taking a look at this, and thanks again for this project.