Re: Core Data & NSPersistentDocument & Concurrency

2013-02-03 Thread Mike Abdullah
On 3 Feb 2013, at 01:04, Eric Gorr wrote: > > On Feb 1, 2013, at 6:59 PM, Mike Abdullah wrote: > >> On 1 Feb 2013, at 20:13, mail...@ericgorr.net wrote: >> >>> I've got a NSPersistentDocument. I have read the Concurrency with Core Data >>> in the Core Data Programming Guide and am following

Re: Core Data & NSPersistentDocument & Concurrency

2013-02-02 Thread Eric Gorr
On Feb 1, 2013, at 6:59 PM, Mike Abdullah wrote: > On 1 Feb 2013, at 20:13, mail...@ericgorr.net wrote: > >> I've got a NSPersistentDocument. I have read the Concurrency with Core Data >> in the Core Data Programming Guide and am following the typically >> recommended approach which is to cre

Re: Core Data & NSPersistentDocument & Concurrency

2013-02-02 Thread Eric Gorr
On Feb 1, 2013, at 7:00 PM, Mike Abdullah wrote: > > On 1 Feb 2013, at 22:11, Felix Franz wrote: > >> >> On 01.02.2013, at 21:13, mail...@ericgorr.net wrote: >> >>> >>> The problem then is that my NSPersistentDocument generates an error which >>> says: >>> >>> "The document "xxx" could

Re: Core Data & NSPersistentDocument & Concurrency

2013-02-02 Thread Felix Franz
On 02.02.2013, at 00:59, Mike Abdullah wrote: > > One downside of that is whenever a child needs to fetch data, it must do so > via the main context, blocking the main thread while doing so. Depending on > your model, that may prove unacceptable. If so, your better bet is to have a > single "

Re: Core Data & NSPersistentDocument & Concurrency

2013-02-01 Thread Mike Abdullah
On 1 Feb 2013, at 22:11, Felix Franz wrote: > > On 01.02.2013, at 21:13, mail...@ericgorr.net wrote: > >> >> The problem then is that my NSPersistentDocument generates an error which >> says: >> >>"The document "xxx" could not be saved. The file has been changed by >> another applicati

Re: Core Data & NSPersistentDocument & Concurrency

2013-02-01 Thread Mike Abdullah
On 1 Feb 2013, at 20:13, mail...@ericgorr.net wrote: > I've got a NSPersistentDocument. I have read the Concurrency with Core Data > in the Core Data Programming Guide and am following the typically recommended > approach which is to create separate managed object context (MOC) for each > thre

Re: Core Data & NSPersistentDocument & Concurrency

2013-02-01 Thread Felix Franz
On 01.02.2013, at 21:13, mail...@ericgorr.net wrote: > > The problem then is that my NSPersistentDocument generates an error which > says: > > "The document "xxx" could not be saved. The file has been changed by > another application" > > Of course, the other application is the NSOperati

Core Data & NSPersistentDocument & Concurrency

2013-02-01 Thread mailist
I've got a NSPersistentDocument. I have read the Concurrency with Core Data in the Core Data Programming Guide and am following the typically recommended approach which is to create separate managed object context (MOC) for each thread, but to share a single persistent store coordinator (PSC)