KeyValueObjectMapping
KeyValueObjectMapping copied to clipboard
filling an object but not creating it
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
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.