When I use NSArrayController with instances of NSManagedObject , I got the impression that the following will provide me with my selected object:
[myArrayController selection]
However, this gives me an instance of some private NS Proxy class.
When i use:
[[myArrayController selectedObjects] objectAt: 0]
... everything is fine and I have an instance of NSManagedObject .
I understand the need for these methods, since you can probably have lists that allow multiple selection. I do not understand why selection does not give me an instance of NSManagedObject .
Roger
source share