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 7170007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:07:29+00:00 2026-05-28T15:07:29+00:00

My question is similar this one here: ResultsController to another ResultsController A typical app

  • 0

My question is similar this one here:

ResultsController to another ResultsController

A typical app structure on ios is to drill down into data via table views, and plenty of app models are hierarchical. For example, a Film Festival could have many Films, which could have many Screenings, which could have many Attendees. If we use Core Data to represent this model, then we can use an NSFetchedResultsController to populate Films into a UITableView. Using the NSFetchedResultsController helps greatly with performance and memory efficiency, and provides built-in support for observing changes to the underlying data. I would like to take advantage of this in my project as much as I can.

So if we have a table of Films backed by this sweet NSFetchedResultsController, and the user selects a Film to see a list of its Screenings, we can pass that Film (a subclass of NSManagedObject) to a new UITableViewController and populate that table with the film’s screenings.

The core of my question is not “How do I do this?” Instead, it’s asking if the benefits of NSFetchedResultsController travel along with the NSManagedObject. I could build a new results controller using the event in the predicate, but I don’t need to. If I pass the Film object into a variable called film, and my to-many relationship is identified as screenings, then I believe I can get the set of screenings related to that film like this:

NSSet *filmScreenings = [film screenings];

If I turn that set into an array, and use that as the data backing my new table view of screenings, am I losing the benefits of the NSFetchedResultsController? My gut tells me yes, especially the support for monitoring changes – but an FAQ in Apple’s docs made me second guess and ask the community at large. Check out the question in this FAQ called “I have a to-many relationship from Entity A to Entity B…”

Should I use that accessor method then, or should I build a new NSFetchedResultsController?

  • 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-28T15:07:30+00:00Added an answer on May 28, 2026 at 3:07 pm

    You will lose the benefits of NSFetchedResultsController by doing this (e.g. batch fetching and change monitoring), as you’re going to replace it with a simple NSArray. You’re best bet is to pass your Film to the details controller, and construct an NSFetchedResultsController using this Film in the predicate for the NSFetchRequest.

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

Sidebar

Related Questions

This is a similar question to this one here . Given a list of
My first question here. The question is similar to this one: PHP: Retrying a
I know there is another question that exists similar to this one but I
This is a question similar to this one here . Is there a built-in
I asked a question similar to this one here and was given great answers,
Liu Chang asked a very similar question to this one here, Linux equivalent of
I've seen a question similar to this multiple times here, but there is one
There is similar question to this one here but I guess that by this
This question is similar to a previous one I made here: randomly sum values
I found a few questions similar to this one here on SO, but none

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.