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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:57:07+00:00 2026-06-10T12:57:07+00:00

My question is similar to a question on this link : Creating a CoreData

  • 0

My question is similar to a question on this link : Creating a CoreData entity based on attribute evaluation

In have just started coding my first project which uses Core Data, in which I have 5 entities, namely Companies,Meetings,Agendas,SubAgendas and Minutes.
Companies are to be related to Meetings and each Meeting should have a relationship with its ‘Agendas’ and ‘Minutes’… Subsequently each Agendas of a meeting should be related to its ‘SubAgendas’

Following represent basic data model of my project:

Companies{
title:string
}

Meetings{
title:string
date:date }

Agendas{
name:string
}

SubAgendas{
name:string
}

Minutes{
name:string
}

I need to code in such a way that if any info about the attributes in any of these entities is changed, it has to be synced.It involves creating new attribute values for each entity or updating the existing attribute values.For this I am planning to have an attribute named ID or tag for each entity, so that once I have set the relationship between each entity, I can update all the other attribute values of an entity with reference to that unique tag value.

Pardon me if my question is confusing.If you can understand, please tell me if what I am planning to do is the right way. I have absolutely no idea about the coding part but I think I can manage if any one can help me with a samples that has been used for similar requirements.

  • 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-10T12:57:09+00:00Added an answer on June 10, 2026 at 12:57 pm

    You are going about this the wrong way. Your “tag value” is really nothing but a so-called foreign key in traditional database programming.

    But Core Data is not “a database”, its an Object Graph. Thus you do not need to use these foreign keys, you just set up relationships between your entities and everything else happens behind the scenes.

    Thus, to change an attribute, just do this:

    agenda.name = @"New agenda name";
    subagenda.agenda.meeting.title = @"New Meeting Title";
    

    So no need to update anything via foreign keys. Welcome to the wonderful world of Core Data.

    Please read the Core Data Programming Guide to get a grip on these concepts.

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

Sidebar

Related Questions

Similar to this question: link However I have already mastered that. My problem is
I have a question similar to this: how to manually assign imagefield in Django
I have asked a question similar to this in the past but this is
Follow up to this question This (similar version from old link) works in SQL
I'm creating a forum which have some what similar look as this! A user
I have a similar question to this one SQL products/productsales I want to do
I have a very similar question to this question , but I am still
This is very similar to this question ( link ), but I'm not quite
My question is quite similar to the one posted in this link - How
Question similar to this: select from two tables where linked column can be null

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.