I am currently looking through documentation and the web, but I am not seeing what I am looking for and I would just like to confirm if what I am looking for exists:-)
As I understand it – this line of code allows me to add a record to the SQLite database which I am showing in my app through Core Data:
NSManagedObject *newSoftware = [NSEntityDescription insertNewObjectForEntityForName:
Now is there a line similar to that that allows me to update the record I am working on?
something like this?
NSManagedObject *newSoftware = [NSEntityDescription updateCurrentObjectForEntityForName:
Thank you very much for the feedback:-)
Here my previous answer on it. It is quite detailed to understand what is going on.
How to update existing object in Core Data?
Based on fumoboy007 comment, you have to update your object trough KVC if you have not set up a subclass for your managed object. If you haven’t already I suggest to create it. The code looks like more cleaner since you can acess a managed object through properties.
Here a link on it:
organising-core-data-for-ios