• 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
NSFetchedResultsController getting insert update on delete?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFetchedResultsController getting insert update on delete?


  • Subject: NSFetchedResultsController getting insert update on delete?
  • From: Rick Mann <email@hidden>
  • Date: Mon, 17 Jun 2013 22:40:36 -0700

I'm deleting a core data entity when my user swipes across the UITableViewCell. I've been doing this for a long time, and it has worked.

Suddenly, the NSFetchedResultsController is getting an *additional* NSFetchedResultsChangeInsert type change (in addition to the expected NSFetchedResultsChangeDelete). Both come as part of the same -[NSManagedObjectContext save:] call.

If I kill the UITableViewController and re-display it, causing it to re-fetch the objects, the object is deleted, and no new object exists.

Very puzzling.

--
Rick




_______________________________________________

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: NSFetchedResultsController getting insert update on delete?
      • From: Rick Mann <email@hidden>
  • Prev by Date: Re: IB UITableViewController "refreshing" setting?
  • Next by Date: Re: core data lightweight migration woes
  • Previous by thread: Re: IB UITableViewController "refreshing" setting?
  • Next by thread: Re: NSFetchedResultsController getting insert update on delete?
  • Index(es):
    • Date
    • Thread