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

  • Home
  • SEARCH
  • 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 5955123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:04:09+00:00 2026-05-22T18:04:09+00:00

I’m currently developing on the iPhone targeting iOS 4.2. I’m wondering what the best

  • 0

I’m currently developing on the iPhone targeting iOS 4.2.

I’m wondering what the best way to populate a set of TableViews is when dealing with tree like model objects. Each level has a one-to-many relationship with the items below it.

Here’s a simple example of the sort of data I’m dealing with:

Magzine [has many] issues [has many] articles

I want to create a TableView with a list of Magazines. Tapping a cell will produce a list of issues. Tapping an issue cell will produce a list of articles.

It seems to me that the simple way of doing this would be to create a root view controller with a fetched NSSet of magazines. When one magazine cell is tapped, the controller creates a new IssueViewController and passes it selectedMagazine.issues. Now in the IssueViewController, when an issue cell is tapped, the corresponding issue’s articles NSSet is passed to a new ArticleTableViewController.

What I’m wondering is the following…

  • Is there a consensus on the “best” way to go about getting the data? Traversing Object Graphs from a root node vs using NSFetchedResultsController?
  • Will Core Data ever unload something (say an issue) from its parent magazine’s set if that issue isn’t accessed for a while? Or will more stuff be cluttering up memory as more nodes on the object graph are accessed?

I’ve done a fair amount of browsing on here, but haven’t seen anything that quite answers my question. Thanks in advance.

  • 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-22T18:04:09+00:00Added an answer on May 22, 2026 at 6:04 pm

    I prefer the use of NSFetchedResultsController when using these drill down type of interfaces. The learning curve is a little steep, but it provides you with a lot of functionality and control especially when using the app templates provided by xCode that you would normally have to code yourself. i.e. in the setup of the NSFetchedResultsController you can set your fetch batch size (helpful for performance tuning), sections (UI optimization), sort descriptors, etc. Where as if you are going the NSSet route, you will have to hand code a lot of what the NSFetchedResultsController already provides you.

    I’ve asked on the Apple Dev forums if there was a best practices on when to use NSSet or NSArray v. NSFetchedResultsController and the response from Apple gurus is that it is up to you and your implementation. After working on several apps over the last couple of years, I understand where they are coming from now. It really depends on what you need for the app and how much time you want to spend learning the ins and outs of NSFetchedResultsController.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I want use html5's new tag to play a wav file (currently only supported
I would like to run a str_replace or preg_replace which looks for certain words
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I am currently running into a problem where an element is coming back from

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.