• 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: Propagate changes/insertions in main context
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Propagate changes/insertions in main context


  • Subject: Re: Propagate changes/insertions in main context
  • From: Ben Lachman <email@hidden>
  • Date: Thu, 3 Apr 2008 13:39:31 -0400

There was quite an extensive conversation about this a couple days ago. Try to check the archives before posting...

<http://www.cocoabuilder.com/archive/message/cocoa/2008/3/30/202687> and following

->Ben
--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

email@hidden
740.590.0009



On Apr 3, 2008, at 8:34 AM, malcom malcom wrote:
Dear List,
I'm working with CoreData. I need to insert lots of objects and make relationship with these and I've decided to perform this operation deteaching a new thread that pool an NSArray where data is placed.
This thread make the object and insert it in a second managed object context, perform linking operations and save the context.
What's the right way to work with multithread and more than an context?
Need I to perform insertion in a second context, then save the context itself (the save operation need to be perfomed inside thread or in main thread?) and make a refreshObject:mergeChanges:YES with the main thread?


Cheers,
Dex Morgan

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Propagate changes/insertions in main context (From: malcom malcom <email@hidden>)

  • Prev by Date: Bindings on Contextual Menu Items when to unbind:
  • Next by Date: Re: 1 pixel bordered CALayer renders improperly
  • Previous by thread: Propagate changes/insertions in main context
  • Next by thread: More fun with C++
  • Index(es):
    • Date
    • Thread