Commit Graph

8 Commits

Author SHA1 Message Date
Blake Watters
4c39918fdb Implement support for flexible metdata mapping. closes #582, #688
* Metadata mapping is implemented via an `NSProxy` object that stands in for the `sourceObject` of each `RKMappingOperation`
* Key paths that are prefixed with `@metadata.` are mapped against the `metadata` dictionary of the operation, else they hit the `sourceObject`.
* Metadata is implemented by merging a dictionary of data in from `RKObjectRequestOperation`, through to `RKResponseMapperOperation`, into `RKMapperOperation`, and all the way down into the `RKMappingOperation`, where it is available to each object. By convention, metdata is namespaced into subdictionaries.
2013-01-24 16:31:19 -05:00
Blake Watters
12938622a8 Another subscripted access stragler 2012-12-26 19:30:22 -05:00
Blake Watters
379269010f Fix additional usage of subscript access in dictionary merge routine 2012-12-26 19:18:59 -05:00
Jawwad Ahmad
e6e515d0c7 Use the return value of the merged dict for the params. Closes #938. 2012-09-18 15:52:54 -04:00
Jawwad Ahmad
4f1fdf2bea Refactor RKDictionaryByMergingDictionaryWithDictionary to cleanup & clarify code. Refs #938. 2012-09-18 15:35:03 -04:00
Jawwad Ahmad
bfbc345ee8 Rename RKDictionaryByReverseMergingDictionaryWithDictionary -> RKDictionaryByMergingDictionaryWithDictionary, since a reverse merge would imply that values in the 1st dictionary take priority whereas we want values in the 2nd dict to overwrite values in the 1st. Refs #938. 2012-09-18 15:24:50 -04:00
Jawwad Ahmad
261cafe18a Fix RKDictionaryByReverseMergingDictionaryWithDictionary method and add unit tests. Refs #938. 2012-09-18 15:24:50 -04:00
Blake Watters
709c3d324b Drop category methods in favor of C functions for required functionality to reduce API size and avoids namespace conflicts 2012-09-11 16:48:18 -04:00