how does CoreData manage class relationship creation?
问题 I have an entity class, correctly defined in a managed context. This class has a one-to-many relationship with another class. Xcode 4 graphic facilities correctly created the derived classes, and the relationship is represented by a NSSet. I am wondering how the creation of the relation classes is managed. I mean, for creating the main entity I am using the NSManagedObject *newEntity = [NSEntityDescription insertNewObjectForEntityForName:@"EntityName" inManagedObjectContext:context]; But what