Search code examples
objective-ccocoacore-dataentitynsarraycontroller

Using Core Data in code - Objective-C/Cocoa


I have Core Data entity named Event in my xcdatamodeld with 2 attributes : title and date. I have also an arrayController set to Entity mode with the Event entity (done with interface builder). I want to access the attributes of the objects in the arrayController using code. How can I do that?


Solution

  • arrayController.arrangedObjects[index].title = newValue;