What is an object for my NSManagedObject?

I have a view controller that can extract many different types of objects from my MOC. How can I determine if an object is for an object of type NSManagedObject?

+4
source share
2 answers

[managedObject entity] will provide you with NSEntityDescription . From there, you can send it -name to get the name of the object, which will be more convenient for the user.

+13
source

Method call.

+1
source

Source: https://habr.com/ru/post/1306438/


All Articles