• 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: Two Applications Sharing Same Core Data Database
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two Applications Sharing Same Core Data Database


  • Subject: Re: Two Applications Sharing Same Core Data Database
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 30 Mar 2011 14:09:43 -0600

On Mar 30, 2011, at 2:05 PM, Carter R. Harrison wrote:

>>> 2. What is the best way to implement it?
>>
>> Put your CoreData code into a framework shared by your applications. And use distributed notifications to keep the applications in sync.
>
> So when one application saves the data store, then it sends a distributed notification to tell the other application to reload its object graph?

Something like that. Or you can send a notification containing the IDs of the managed objects that were changed in the other app, and have your handler re-fault its managed objects if necessary so that it'll have the latest information when it un-faults them later.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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: Two Applications Sharing Same Core Data Database
      • From: Jerry Krinock <email@hidden>
References: 
 >Two Applications Sharing Same Core Data Database (From: "Carter R. Harrison" <email@hidden>)
 >Re: Two Applications Sharing Same Core Data Database (From: Nick Zitzmann <email@hidden>)
 >Re: Two Applications Sharing Same Core Data Database (From: "Carter R. Harrison" <email@hidden>)

  • Prev by Date: Re: Two Applications Sharing Same Core Data Database
  • Next by Date: Re: Two Applications Sharing Same Core Data Database
  • Previous by thread: Re: Two Applications Sharing Same Core Data Database
  • Next by thread: Re: Two Applications Sharing Same Core Data Database
  • Index(es):
    • Date
    • Thread