magicalpanda/MagicalRecord — pull request #243 by mishakarpenko (2012-09-05 09:37:32+00:00)
Title: Fixed crashing when importing data with a different than expected type

Hi!

Started using MagicalImport on a new project and run into an error: when importing data with another type than it is expected in the entity's setter an exception is thrown - for example, if you put `NSNumber` into `- (void)setTitle:(NSString *)title`. It would be good to check such kind of errors when importing data from REST API. Changing the data type on the server side would crash the whole app.

I've added try-catch block on setting KVC value. I doubt that it is the best implementation regarding performance issues but it solves the problem.

Would like to hear your thoughts on this.

Thank you.