Pheepster
Pheepster

Reputation: 6357

Core Data modeler not updating when entity names change

I am having an issue using Core Data modeler. I had an issue where I needed to change the names of entities in the modeler. When I did so, I deleted the associated managed object subclasses, did a clean, then went back the modeler, highlighted the entities with the new names, then generated subclasses using

Editor > Create NSManagedObject Subclass

When I did so, the newly generated subclasses still have the original names. Am I missing something?

Upvotes: 2

Views: 1936

Answers (2)

Lahiru Pinto
Lahiru Pinto

Reputation: 1681

  1. Select the ENTITY you want to change

  2. Select Data Model from right hand top corner as shown below, and change as u want. Entity name and Class no need to be the same.

enter image description here

  1. Finally Clean and Build the project.

Upvotes: 1

Tom Harrington
Tom Harrington

Reputation: 70956

In the model editor, you set the class name separately from the entity name. They don't have to be the same. If you only change the entity name name, what you're seeing is normal.

Upvotes: 7

Related Questions