Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the entity for my NSManagedObject?

I have a view controller that can fetch many different types of entities from my MOC. How can I tell what the entity is for an object of the type NSManagedObject?

like image 713
E-Madd Avatar asked Dec 09 '22 16:12

E-Madd


1 Answers

[managedObject entity] will give you an NSEntityDescription. From there you can send it -name to get the entity's name that's a bit more user-friendly.

like image 173
Giao Avatar answered Dec 12 '22 04:12

Giao