Propagate changes/insertions in main context
Propagate changes/insertions in main context
- Subject: Propagate changes/insertions in main context
- From: malcom malcom <email@hidden>
- Date: Thu, 3 Apr 2008 14:34:17 +0200
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