In Xcode when you create a data model diagram, it will also generate the classes for each entities in the diagram which inherit from NSManagedObject.
The question is are these classes considered my “Model” classes?
OR are they just a bridge between my core data and model classes?
Yes these classes generated by xcode are the actual model classes.
I ended up writing my own model classes and then create the data model diagram based on that.
a few notes:
must inherit from NSManagedObject
the code, you can just set them in
the model diagram.
accepted, you should use NSSet
instead
you should use NSNumber instead
use the classes written by you, then
you must set the class names in your
model diagram