BaSha
BaSha

Reputation: 2406

Issue with xcdatamodeld

i have UserInfo.xcdatamodeld and respective to entities UserInfo and Department. so if i change or update my xcdatamodeld file i.e adding new attribute or update relationship in it, are those changes reflects in my NSManagedObject class files auto or i have to re create classes?

Upvotes: 1

Views: 242

Answers (1)

iCreative
iCreative

Reputation: 1506

You need to create the NSManagedObject classes each time when you update the model file. When you'll do this, your classes will be updated with the latest available attributes & relationship. You can also add the attributes manually, but for avoiding the human errors better approach will be to delete old classes & add them dynamically.

Upvotes: 1

Related Questions