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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:07:54+00:00 2026-05-13T06:07:54+00:00

Overall I’m loving Core Data so far, but there is one quirk in the

  • 0

Overall I’m loving Core Data so far, but there is one quirk in the system that I keep coming back to, and that’s problems created when I decide to use relationships instead of attributes.

Using cars for an example, let’s say I have a Car entity and a Manufacturer entity. Ideally, I can just put a relationship between them, many cars to one manufacturer, and then when I’m setting up the edit page for the cars have the manufacturers fed into an NSPopUpButton for the user to select. This works, but it doesn’t seem to save any value, so when I reload the edit page for that particular car the manufacturer appears blank.

Another alternative that saves the data is to treat the manufacturer as an attribute, and then set the form up the same as before (manufacturer names fed into an NSPopUpButton list). This consistently saves the manufacturer in the car’s data, but no inverse relationship is created connecting back to the manufacturer, which is less than ideal.

How do you use relationships and attributes most effectively in Core Data? Further, how do you resolve issues like the one outlined above so that the connections are made, but the names of the linked items are displayed instead of “No Data” or fault notices?

  • 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-13T06:07:54+00:00Added an answer on May 13, 2026 at 6:07 am

    Have you seen this problem only with your NSPopUpButton user interface? It’s possible you haven’t configured your bindings correctly. In Core Data, it’s enough to assign an instance of the appropriate entity to a relationship. You won’t need a separate attribute to store the relationship.

    The first thing I’d check is that the selectedObject binding is bound to the correct relationship.

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

Sidebar

Related Questions

Are there overall rules/guidelines for what makes a method thread-safe? I understand that there
Is there anyway to overall centre a webpage that already has fixed values? I
I've inherited a Silverlight project with dubious code quality overall, and there is one
The overall goal I'm trying to accomplish is to implement a customizable avatar system
My overall goal is isolate tags that contain a certain word in the text
I'm going to assume that the overall structure of my code as it currently
First, the overall description: There are two Component Templates, NewsArticle and NewsList. NewsArticle is
Is there a way to hide table rows without affecting the overall table width?
Heres the overall code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI;
I think this is my overall .NET inexperience speaking here, but I cannot figure

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.