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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:43:16+00:00 2026-05-12T00:43:16+00:00

I’ve got three entities in my application so far: tag, feed and story A

  • 0

I’ve got three entities in my application so far: tag, feed and story

A tag has got a to-many relationship to feeds and feeds has got a to-many relationship to story.

I’ve got an NSArrayController for each entity, one named tags, one named feeds and one named stories.
They all share the same ‘managedObjectContext’ which they get from the file’s owner. the content set of the AC named feeds is bound to ‘tags’ controler key: selection, key path: feeds

I want the content set of the third array to be bound to all of the stories in all of the feeds in the selected tag: i tried to use the key path: “@unionOfArrays.stories” but couldn’t get it to work.

Any idea how i would go about this?

  • 1 1 Answer
  • 1 View
  • 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-12T00:43:17+00:00Added an answer on May 12, 2026 at 12:43 am

    First of all, there’s one thing in your question that’s inconsistent with getting something working:

    They all share the same
    ‘managedObjectContext’ which they get
    from the file’s owner

    When I set this up in IB, it just didn’t work. You surely mean you bound the managedObjectContext to that of the App Delegate.

    Assuming you want to see all the stories in the selected tag, here’s a few mistakes you might have made in your setup.

    1. Check Inverse Relationships

    For all the relationships you mention, you need to set the inverse for each relationship.

    For the one to many tags->feeds relationship, you’d have a to many relationship in the tags elements called “feeds”, which you’ve described.

    You’d also have a to one relationship in the feeds entity called “tag”.
    You’d select the inverse relationship as being feeds as shown below:

    Single Feed Relationship http://img20.imageshack.us/img20/2557/tagsinglefeedrelationsh.jpg

    2. Link Up Stories

    You don’t mention how you’ve created any of your Stories. Assuming you’re not doing anything in code, I’d have 4 Array Controllers:

    1. Tags
    2. Feeds in Selected Tag
    3. Stories in Selected Feed
    4. All Stories in Selected Tag

    If you just have a Stories Array Controller whose Content Set isn’t bound to anything, you’ll be creating stories effectively in a vacuum – they won’t be linked to any feeds or tags, which might be why you’re getting these errors.

    3. Setup “Stories in Selected Tag” Controller

    You need to set the Content Array, not the Content Set.

    Bind the Content Array to the “Feeds in Selected Tag” Controller.

    • Key: arrangedObjects
    • Key Path: @unionOfArrays.stories

    This sends the Key Path stories to every object in the “Feeds in Selected Tag” Controller, thus getting all the Stories in all the Feeds in the selected Tag.

    4. Rock and Roll!

    We’re done. If you’re really struggling getting this set up, let me know and I can post the link to the XIB file I’ve made.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I want to count how many characters a certain string has in PHP, but
Basically, what I'm trying to create is a page of div tags, each has
I've got a string that has curly quotes in it. I'd like to replace
In my XML file chapters tag has more chapter tag.i need to display chapters
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,

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.