• 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
How to send fetchrequest to main context from a local context on a separate thread?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to send fetchrequest to main context from a local context on a separate thread?
      • From: Koen van der Drift <email@hidden>
  • Prev by Date: Associate icon with file ext. / quick look
  • Next by Date: NSUbiquitousKeyValueStoreDidChangeExternallyNotification
  • Previous by thread: Re: Associate icon with file ext. / quick look
  • Next by thread: Re: How to send fetchrequest to main context from a local context on a separate thread?
  • Index(es):
    • Date
    • Thread