core data - How to alter the class of a coredata entity to a subclass -
i have coredata model parent entity type, , other entities subclasses of parent.
during runtime, first creating entities instances of parent class.
later on, want able specialize these entities become instances of subclass. want alter class of entities. change want make :
entity.class = parent -> entity.class = child
does coredata offer way cleanly, or have manually, removing instance of parent class , create instance of subclass, filling attributes of parent ?
thank help.
you have create new object of child entity , delete previous object. entity of managed object cannot changed after object has been created.
Comments
Post a Comment