• 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
-controllerWill/DidChangeContent: called for every change
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-controllerWill/DidChangeContent: called for every change


  • Subject: -controllerWill/DidChangeContent: called for every change
  • From: Rick Mann <email@hidden>
  • Date: Fri, 27 Feb 2015 23:23:13 -0800

According to the docs, it's supposed to be called once at the start, and again at the end. But it's being called for every single change. In these calls, I call beginUpdates and endUpdates on my table view. Partway through, my table view complains about mismatched inserts/deletes, etc.

The action that initiates this is a bulk change to a bunch of the entities in the NSFetchedResultsController's set. The FRC has a predicate "removed == false". The bulk update changes "removed" to true. I get a deleted change type (not updated) for each object, bracketed by will/did change calls.

All of this happens in the -[MOC save:] call after the updates.

Am I missing something?

--
Rick Mann
email@hidden



_______________________________________________

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


  • Follow-Ups:
    • Re: -controllerWill/DidChangeContent: called for every change
      • From: Rick Mann <email@hidden>
  • Prev by Date: Error migrating: "Unacceptable type of value for attribute"
  • Next by Date: Re: -controllerWill/DidChangeContent: called for every change
  • Previous by thread: Re: Error migrating: "Unacceptable type of value for attribute"
  • Next by thread: Re: -controllerWill/DidChangeContent: called for every change
  • Index(es):
    • Date
    • Thread