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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:12:36+00:00 2026-06-17T17:12:36+00:00

I really need some help solving this little puzzle in my app. Case: I

  • 0

I really need some help solving this little puzzle in my app.

Case: I have, lets say 4 entities in Core-Data:

  • MixColors (consist of 3 colors from ColorA,B and C. And many of them)
  • ColorA
  • ColorB
  • ColorC

The user chooses 3 colors(A,B,C), and stores the result in MixColors. The 3 colors is just the ID from the color entities, the indexed ID (primary key). Entity mixcolors consist of ‘many’ combinations for those colors.

My bad solution: I can easily make the model without relationships.. but I prefer relations in core-data.

Problem: So how could I achieve this?
Should I combine ColorA,B,C into one entity: Color – and then make a single relationsship but I see some problems for the index IDs? So what’s the best way to model this case in core-data?

  • 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-06-17T17:12:37+00:00Added an answer on June 17, 2026 at 5:12 pm

    In core data you don’t have to worry about IDs at all, it’s all taken care of for you. Maybe try this:

    Palette < ---- >> Color
    

    You only need 2 objects and a one to many relationship between palette objects and color objects. In practice this will mean a Palette object will have a property called Colors, which will be an NSSet of color objects. If the color objects have to also keep their order then add a property for that, like ‘order’ that stores a number. You can then fetch them in that order.

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

Sidebar

Related Questions

I really need some help with this as I have been trying to fix
Hi guys I really need some help, I have been stuck in this part
i really need some help with this..i have done a lot of search and
We Really need some help on this one: We've Struggled with all the Apple
Okay, I really need some help with this. I'm new with designing and stuff,
I'm confused about how DQL works, and really need some help here. I have
This may sound like a newbie question, but I really need some help with
I really don't know how to title this question, but I need some help
I'm not really good at Javascript/jQuery yet, so I need some help. I have
i have questions that i am really need some help on it: i develop

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.