Multithreading with Core Data

…….
…….
…….
@synchronized(self)
{

  1.     Create new NSManagedObjectContext object
  2.     Set persistent store coordinator of main thread’s NSManagedObjectContext to new NSManagedObjectContext object
  3.     Fetch NSManagedObject from DB using new NSManagedObjectContext object
  4.     Do modifications on NSManagedObject object
  5.     save new NSManagedObjectContext object
  6.     Merge new NSManagedObjectContext object changes with Main thread’s NSManagedObjectContext object

}
…….
…….
…….

Make use of onFinishParsing method from the following link
http://stackoverflow.com/questions/2009399/cryptic-error-from-core-data-nsinvalidargumentexception-reason-referencedata64

Blogged with the Flock Browser

Tags: , , , , , ,

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: