KeyValueObjectMapping icon indicating copy to clipboard operation
KeyValueObjectMapping copied to clipboard

filling an object but not creating it

Open QuentinArnault opened this issue 11 years ago • 1 comments

Hi,

I had a look at your library, and I thing it can help me a lot. But I would like to use it for filling properties of an existing object.

Something like MyClass *myObject = [[MyClass alloc] init]; NSDictionary *fixture = ...; [myObject parseDictionary:fixture];

But I did not find how to do it? I saw then custom initializer, but I prefer to create directly my instances.

Regards, Quentin Arnault

QuentinArnault avatar Feb 26 '14 23:02 QuentinArnault

I'd also be interested in that. It is common with Core Data applications to update existing objects, rather than always creating new ones. I guess you could fudge it in with the custom initialiser blocks for now.

jdmunro avatar Feb 28 '14 15:02 jdmunro