Rightpoint / RZImport

Automatic importing of data from NSDictionary to Cocoa objects
Other
18 stars 6 forks source link

- Allow import property names override #29

Closed nbonatsakis closed 8 years ago

nbonatsakis commented 9 years ago

@mgorbach @KingOfBrian This is a very basic approach for allowing property name overrides. I was going to also extend RZVinyl to optionally add the NSEntityDescription based lookup, but that code amounts to about 3 lines, so for now I think just having this ability in import gets us a workable solution for Swift + CoreData + Import/Vinyl.

As far as I can tell, and based on tests, this cuts low enough that all the other import goodness is intact (fuzzy matching, property definition caching, etc). Let me know what you guys think.

KingOfBrian commented 9 years ago

Looks good to me @nbonatsakis . It's a little different stylistically, since we're implementing a new selector rather than over-riding the base selector, but I don't think that's a big deal.