Re: Two Applications Sharing Same Core Data Database

2011-04-08 Thread Carter R. Harrison
On Apr 7, 2011, at 7:04 PM, Carter R. Harrison wrote: > > On Apr 7, 2011, at 6:38 PM, Nick Zitzmann wrote: > >> >> On Apr 7, 2011, at 4:24 PM, Carter R. Harrison wrote: >> >>> I really appreciate all of your help. I gave your suggestion a shot and >>> I've run into problems. Here's what ha

Re: Two Applications Sharing Same Core Data Database

2011-04-07 Thread Carter R. Harrison
On Apr 7, 2011, at 6:38 PM, Nick Zitzmann wrote: > > On Apr 7, 2011, at 4:24 PM, Carter R. Harrison wrote: > >> I really appreciate all of your help. I gave your suggestion a shot and >> I've run into problems. Here's what happens. >> >> 1. I create a new NSManagedObject in my main applicat

Re: Two Applications Sharing Same Core Data Database

2011-04-07 Thread Nick Zitzmann
On Apr 7, 2011, at 4:24 PM, Carter R. Harrison wrote: > I really appreciate all of your help. I gave your suggestion a shot and I've > run into problems. Here's what happens. > > 1. I create a new NSManagedObject in my main application. It gets inserted > into the context. > 2. I save the c

Re: Two Applications Sharing Same Core Data Database

2011-04-07 Thread Carter R. Harrison
On Mar 30, 2011, at 4:09 PM, Nick Zitzmann wrote: > > 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 applica

Re: Two Applications Sharing Same Core Data Database

2011-03-30 Thread Jerry Krinock
On 2011 Mar 30, at 13:09, Nick Zitzmann wrote: > 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 whe

Re: Two Applications Sharing Same Core Data Database

2011-03-30 Thread Nick Zitzmann
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 sto

Re: Two Applications Sharing Same Core Data Database

2011-03-30 Thread Carter R. Harrison
On Mar 30, 2011, at 4:03 PM, Nick Zitzmann wrote: > > On Mar 30, 2011, at 1:45 PM, Carter R. Harrison wrote: > >> I'm working on a Mac Application that will have a helper application that is >> always running in the background (even if the main application is not >> currently running). Curre

Re: Two Applications Sharing Same Core Data Database

2011-03-30 Thread Nick Zitzmann
On Mar 30, 2011, at 1:45 PM, Carter R. Harrison wrote: > I'm working on a Mac Application that will have a helper application that is > always running in the background (even if the main application is not > currently running). Currently the main application uses Core Data to manage > persist