Search code examples
ioscore-datansmanagedobjectnsmanagedobjectcontext

Can we save a particular NSManagedObject?


Can we save a particular NSManagedObject intead of whole NSManagedObjectContext?


Solution

  • No. Saving a managed object context saves all changes made to the context, and there is no API to save a single object.

    What you perhaps can do is to create a separate context, create or modify an object there and save that context.