Core Data Minefield

Boisy Pitre boisy at boisypitre.com
Tue Feb 6 06:35:04 PST 2007


On Feb 5, 2007, at 6:52 AM, mmalc crawford wrote:

>
> On Feb 4, 2007, at 4:59 PM, Boisy Pitre wrote:
>
>> What I am seeing is that when a previously saved data file is  
>> opened, the inserted/deleted/updated  
>> NSManagedObjectContextObjectsDidChangeNotification notifications  
>> are NOT triggered.
>>
> Why would you expect to see a  
> NSManagedObjectContextObjectsDidChangeNotification notification on  
> load?  The managed objects aren't changed.

mmalc,

I would expect to see a  
NSManagedObjectContextObjectsDidChangeNotification notification on  
load by virtue of the fact that managed objects are being inserted  
into the managed object context.  There are three keys that can be  
part of the passed userInfo dictionary: inserted, updated and  
deleted.  When loading the data from the store, are they not being  
inserted into the managed object context?   By extension, shouldn't  
this trigger the NSManagedObjectContextObjectsDidChangeNotification  
notification, alerting any registered observers?

> t
> mmalc
>



More information about the MacOSX-dev mailing list