I have method that returned NSManagedObject and I don’t know what kind of NSManagedObject it is, because depend of situation this method can return 1 of 3 kind of classes which mark as NSManagedObject. So how can I understand which kind of NSManagedObject it return? For example: firstObj, secondObj, thirdObj.
I have method that returned NSManagedObject and I don’t know what kind of NSManagedObject
Share
To query its entity name you can simply do this:
Now if you like further information you could do something like this:
For more information see the docs on
NSEntityDescriptionhere