Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6706265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:30:01+00:00 2026-05-26T07:30:01+00:00

I have a tableview using NSFetchedResultsController to load data from the Core Data store,

  • 0

I have a tableview using NSFetchedResultsController to load data from the Core Data store, I am implementing controllerDidChangeContent: to update the table with new data (loaded from a remote source), however, the delegate method controllerDidChangeContent: is being called as soon as I create a Managed Object, it was my understanding that this should only be called when I message save: on the corresponding Managed Object Context.

Is there a parameter to set to enable this ?

I am downloading an XML with many items to insert into the tableview and I’m getting crashes because I am creating my Managed Objects on the fly and appending information on the fly, some of which are required to be displayed in the Table View Cell.

Therefore by controllerDidChangeContent: being called each time I create a new Managed Object, the properties I require to make the Table View Cell are not yet ready.

Any insight would be great.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:30:02+00:00Added an answer on May 26, 2026 at 7:30 am

    You can’t disable this behavior of the NSFetchedResultsController. To prevent this you can create a second NSManagedObjectContext, do all your inserts, changes and deletes there and finally merge both contexts with the mergeChangesFromContextDidSaveNotification:

    As your are downloading an XML file you also should do this in a background thread to prevent the UI being blocked for user inputs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a tableview application loaded with core data feltching objects and i wanna
My app is using an NSFetchedResultsController tied to a Core Data store and it
Ok Guys, here's the situation I have. I'm using a UITableViewController with Core Data.
I'm using Core Data for a table view, and I'd like to use the
I have an app using tableview and NSFetchedResultsController. I am getting the error: Serious
I have a tableview which is being reloaded as new content is added, using
I have a TableView loading a custom cell and loading the data from a
I have a NSFetchedResultsController which is fetching objects from a NSManagedObjectContext . I'm using
I have an NSMutableArray and I load my tableview from it. Now I have
I have a tableview with each cell loaded from a xib. It is in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.