• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [CORE DATA] multithreading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [CORE DATA] multithreading


  • Subject: Re: [CORE DATA] multithreading
  • From: Aurélien Hugelé <email@hidden>
  • Date: Tue, 28 Feb 2006 14:55:32 +0100

Some answers from myself

But i have some problem to understand if I have to synchronize both MOC manually or not and how? i mean, should i insert in the main thread moc (using [moc1 insertObject:[moc1 objectWithID:objectId]]) the objects i inserted in the threaded moc (ie moc2, using insertNewObjectForEntityForName:inManagedObjectContext:) ? from what i have read on this list, i have to synchronize mocs, nothing is done for me.
From my test, to make the main thread array controller aware of the new objects, i have to use insertObject: on the moc1.

reinserting an object in another context is an error, at the next save: of the context, you'll get an error, the object is already inserted blah blah blah.


So how can i make my array controllers aware of the newly inserted objects ?

Aurelien

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [CORE DATA] multithreading
      • From: Bill Bumgarner <email@hidden>
References: 
 >[CORE DATA] multithreading (From: Aurélien Hugelé <email@hidden>)

  • Prev by Date: Re: Create semi-transparent NSImage
  • Next by Date: Re: List of all available classes ?
  • Previous by thread: [CORE DATA] multithreading
  • Next by thread: Re: [CORE DATA] multithreading
  • Index(es):
    • Date
    • Thread