I’ve looked through all the class documentation for Core Data and I can’t find away to programmatically update values in a core data entity. For example, I have a structure similar to this:
id | title ============ 1 | Foo 2 | Bar 3 | FooFoo
Say that I want to update Bar to BarBar, I can’t find any way to do this in any of the documentation.
The Apple documentation on using managed objects in Core Data likely has your answer. In short, though, you should be able to do something like this:
(Note:
bookTwomust be a managed object that is associated withmanagedObjectContextfor this example to work.)