I have a NSTreeController (treeController) and a CoreData database. I want the entity behind the selected object of my NSTreeController.
I use this to get the correct NSEntityDescription:
[[[[treeController selectedObjects] objectAtIndex:0] representedObject] entity]
Now I have my testEntity and I want to assign the entity object described by the NSEntityDescription I get with the code above.
MyEntityClass *testEntity;
testEntity = ???
I can't find a method. Is there another way to get the entityObject behind the selected object of the NSTreeController?
Thx!