ObjectiveRecord icon indicating copy to clipboard operation
ObjectiveRecord copied to clipboard

Adds keypath mapping support

Open dzenbot opened this issue 11 years ago • 0 comments

By optionally returning +keyPathForRemoteKey: in any NSManagedObject subclass, it checks for a keypath related to the remote key, to be able to call -valueForKeyPath: instead of -objectForKey:

This allows keypaths mappings, for objects that don't need to be nested in CoreData but come nested from the remote payload.

It may still need:

  • caching support (to avoid having to +keyPathForRemoteKey: at every iteration)
  • skip the discarding log, when the property in class is not found
  • refactor refactor refactor

dzenbot avatar Jun 13 '14 05:06 dzenbot