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

Re: -controllerWill/DidChangeContent: called for every change


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

Ah, nevermind. That's what happens when you save in your batch update loop.

> On Feb 27, 2015, at 23:23 , Rick Mann <email@hidden> wrote:
>
> 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


--
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


References: 
 >-controllerWill/DidChangeContent: called for every change (From: Rick Mann <email@hidden>)

  • Prev by Date: -controllerWill/DidChangeContent: called for every change
  • Next by Date: NSTextView Copy-and-Paste Problem
  • Previous by thread: -controllerWill/DidChangeContent: called for every change
  • Next by thread: NSTextView Copy-and-Paste Problem
  • Index(es):
    • Date
    • Thread