I have an custom class for an Core Data entity, called 'Friends'. As I am parsing an XML File, I need to create temporary instances to hold temporary data, without using Core Data at this point. So there are two options:
A) create an NSMutableDictionary to hold the temporary data while parsing an "object" from the XML.
B) use the class of the entity to store temporary data while parsing. I would prefer that, because it is more clear and more DRY for me, since the data structure is declared in there already and I wouldn't have to duplicate the whole data model of that entity in an NSMutableDictionary.
But B has a problem: By default, all the properties are @dynamic, and as far as I know, Core Data takes care of creating the implementations at runtime. So I can't just use the properties there. So this raises the question if it's worth the effort and even possible to modify that class in such a way that it can be used without Core Data as a temporary data container object, i.e. by creating instance variables. Of course, if I had to create an dictionary in there to hold the temporary data, that would make no sense at all, and I would just go with A.