• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data randomly reports updating an object, but it is unchanged
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Core Data randomly reports updating an object, but it is unchanged (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Confusion about Image I/O export?
  • Next by Date: Re: Core Data Initialization
  • Previous by thread: Re: Core Data Initialization
  • Next by thread: Confusion about Image I/O export?
  • Index(es):
    • Date
    • Thread