Re: Handling NSManagedObjectContextDidSaveNotification from different threads

2010-08-12 Thread Sean McBride
Rick Mann (rm...@latencyzero.com) on 2010-08-11 17:33 said: >On Aug 11, 2010, at 13:16:28, Kyle Sluder wrote: > >> http://www.cocoabuilder.com/archive/message/cocoa/2009/5/29/237809 > >This thread refers to a debug version of Core Data. I looked through my >ADC assets, but don't see that anywhere.

Re: Handling NSManagedObjectContextDidSaveNotification from different threads

2010-08-11 Thread Rick Mann
On Aug 11, 2010, at 13:16:28, Kyle Sluder wrote: > http://www.cocoabuilder.com/archive/message/cocoa/2009/5/29/237809 This thread refers to a debug version of Core Data. I looked through my ADC assets, but don't see that anywhere. Does anyone know where I can find it? -- Rick ___

Re: Handling NSManagedObjectContextDidSaveNotification from different threads

2010-08-11 Thread Rick Mann
Thanks much for that! On Aug 11, 2010, at 13:16:28, Kyle Sluder wrote: > On Wed, Aug 11, 2010 at 1:07 PM, Rick Mann wrote: >> We did, as far as anyone here knows. I just find it interesting that the >> preferred approach, to use multiple MOCs and one PSC, creates a situation in >> which a MOC

Re: Handling NSManagedObjectContextDidSaveNotification from different threads

2010-08-11 Thread Kyle Sluder
On Wed, Aug 11, 2010 at 1:07 PM, Rick Mann wrote: > We did, as far as anyone here knows. I just find it interesting that the > preferred approach, to use multiple MOCs and one PSC, creates a situation in > which a MOC is likely to be manipulated by multiple threads: when handling > the didSave

Re: Handling NSManagedObjectContextDidSaveNotification from different threads

2010-08-11 Thread Rick Mann
On Aug 11, 2010, at 12:55:26, Keary Suska wrote: > On Aug 10, 2010, at 2:55 PM, Rick Mann wrote: > >> We have an app that uses a "main" NSManagedObjectContext (MOC) for all >> UI-related work, and has background threads that add and update data via >> their own dedicated MOCs. When they call -

Re: Handling NSManagedObjectContextDidSaveNotification from different threads

2010-08-11 Thread Keary Suska
On Aug 10, 2010, at 2:55 PM, Rick Mann wrote: > We have an app that uses a "main" NSManagedObjectContext (MOC) for all > UI-related work, and has background threads that add and update data via > their own dedicated MOCs. When they call -save: on their MOC, the "main" MOC > gets the NSManagedOb

Handling NSManagedObjectContextDidSaveNotification from different threads

2010-08-10 Thread Rick Mann
We have an app that uses a "main" NSManagedObjectContext (MOC) for all UI-related work, and has background threads that add and update data via their own dedicated MOCs. When they call -save: on their MOC, the "main" MOC gets the NSManagedObjectContextDidSaveNotification and calls -mergeChanges