aryaxt / OCMapper

Objective-C library to easily map NSDictionary to model objects, works perfectly with Alamofire. ObjectMapper works similar to GSON
MIT License
347 stars 45 forks source link

Use same ObjectMapper for NSObject & NSManagedObject #6

Closed aryaxt closed 9 years ago

aryaxt commented 10 years ago

Get rid of instanceProvider property, and instead have an array that holds objects of type @protocol(InstanceProvider).

Implement chain of responsibilities so that the object mapper decides which instanceProvider to use depending on whether class inherits from NSManagedObject or not.