Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoa Bindings error

Trying to wrap my head around cocoa bindings can't determine the reason for this error

I Have a simple app, in which, the app delegate passes the Managedobjectcontext to Window Controller, which passes it to a view controller. The nib associated with view is a viewbased table with array controller.

I initiated a few managed objects in the app delegate, when I run the application the table is populated with the objects however the following error is thrown

[_NSControllerArrayProxy firstIndex]: unrecognized selector sent to instance 0x100165510

Since there is very little code, not sure how to debug this

like image 460
Cory Avatar asked Feb 16 '23 20:02

Cory


1 Answers

Thanks Anoop, your second link solved my problem I had the controller key for Selection indexes set to arrangedObjects, I changed this to selectionIndexes and all is working.

like image 185
Cory Avatar answered Mar 19 '23 03:03

Cory