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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:47:19+00:00 2026-05-31T17:47:19+00:00

IOS5.1 / XCode 4.3 I have 2 entities in my core data, lets call

  • 0

IOS5.1 / XCode 4.3

I have 2 entities in my core data, lets call them Jobs and Workers, each Job has a Joiner, a Brickie, and a Plumber, these are fields which i want to relate to 3 different workers.

A Workers role is a text property that is populated from a pick list when the worker is created.

As the Workers don’t have specific Role fields, I’m unsure how to satisfy core data’s need for inverse relationships.

Any help would be appreciated, this is my first core data project and I’m not even sure if my model is appropriate for this kind of storage.

Thanks


Thanks for the quick and clear answer Matthias, Just to clarify, I will add new worker roles to the pick list in Xcode, the user won’t have that feature.

I considered option 1 but rejected it because of the work involved when adding a new role.

I like option 2 better, question: would the workers relationship in the job object be a collection of all workers associated with the job? and would the fetched properties be generated on the fly from the Role properties in that collection.

If i didn’t use the fetched properties would i need to iterate the workers relationship to find the plumber rather than having a direct link?

this site won’t let me add comments to answers or even my own question, so I’ve had to put a response here 🙁

  • 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-31T17:47:21+00:00Added an answer on May 31, 2026 at 5:47 pm

    Option 1: Create a different entity for each worker. They could all have a parent entity like Worker where you would put common attributes.

    enter image description here

    Option 2: Add a role attribute to the worker. You could create fetched relationships to get the different kind of workers.

    enter image description here

    If you want it dynamic (e.g. in the year 2525 somebody uses your app and he needs a technician to install a teleportation device) choose option 2. But then without fetched relationships.

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

Sidebar

Related Questions

I have a core data model with some entities set up. I have set
I have an existing ios5/xcode 4.2 app, and I want a button to open
I have an Xcode 4.2 project with ios5 targeting 4.3 and am now suddenly
I was trying to work on xcode and ios5 and I have a TWRequest
I have updated my iPod to iOS5 and xcode to 4.2 but none of
I have recently updated Xcode to use the iOS5 SDK. Since updating my app
I have created a page-based application in Xcode 4, for iPad iOS5. When I
So basically i have upgraded to iOS5 and xcode 4.2 but after a little
Using Xcode 4.2/iOS5.0 I have a viewController and an associated viewController.xib. The viewController is
Wow, finally the XCode 4.2 / iOS5 simulator has StoreKit support. In my app

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.