Re: Core Data randomly reports updating an object, but it is unchanged
Re: Core Data randomly reports updating an object, but it is unchanged
- Subject: Re: Core Data randomly reports updating an object, but it is unchanged
- From: Jerry Krinock <email@hidden>
- Date: Mon, 02 Sep 2013 07:12:26 -0700
After sleeping on this issue a little, I've made some progress.
The errant -updateChangeCount: occurs when an attribute of the object in question, which is nil to begin with, is re-set to nil. This setting happens when a detail view gets bound (Cocoa Bindings). I'm still digging into why that happens (54% of the time); it's complicated but it's a different issue.
I find it annoying that -updateChangeCount: would be invoked when an object's attribute experiences such a non-change, but I seem to recall that, in general, Cocoa does not check to see if changes are really changes. In the past, I've put in my own filters for this, to improve performance, for example.
Jerry
_______________________________________________
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