How to send fetchrequest to main context from a local context on a separate thread?
How to send fetchrequest to main context from a local context on a separate thread?
- Subject: How to send fetchrequest to main context from a local context on a separate thread?
- From: Koen van der Drift <email@hidden>
- Date: Wed, 17 Oct 2012 12:25:15 -0400
I'm reading up on importing data into the CD store using multiple
contexts and threads.This article has already been very helpful:
http://www.duckrowing.com/2010/03/11/using-core-data-on-multiple-threads/
Now if I have a local context on a separate thread to import my data,
how can I send a fetchrequest to the main context to see if a certain
entity already exists, and thus skip the import? I already have the
fetchrequest code, just trying to understand how to access the main
context form a separate thread.
Thanks,
- Koen.
_______________________________________________
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