Use my subclass of NSManagedObject as a superclass for CoreData objects

Can I set up a superclass for subclassing CoreData objects? I want to change NSManagedObject to my subclass of NSManagedObject.

thanks

+4
source share
1 answer

You can subclass NSManagedObject and set it as a class, for example. MyManagedObject in the image below, but you should still set this for all objects in the datamodel . It is not possible to set your own managed object class, which by default can be used for all objects, it can only be NSManagedObject.

enter image description here

0
source

All Articles