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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:35:52+00:00 2026-05-20T22:35:52+00:00

i need some help with designing iphone’s core data object model context. I’ve started

  • 0

i need some help with designing iphone’s core data object model context. I’ve started making a golf scorecard application using XCode 4, and the way I want the application behave is…

-User can add players (with first/last name, initials)
-User can add courses (with name, address details, holes with par/lenght)
-Play a round so that in on top of scorecard tableview (hole view) I want to have fixed section that will not scroll, and that will show current score for each player on a round in addition to the best score ever on that same course.
-On hole view, in section header, I want to show like “Hole 11: Par 3 / 150 m” and on each row I want to show buttons to add strokes, and the best score ever on that particular hole.
-When managing players, adding/deleting, user can also browse the rounds that player has ever played.

What is the best approach to design entities? I already got some consultation and he suggested that I should have it like this:

PLAYER:  
- first_name  
- last_name  
- initials  
- ROUND:*  
-- date  
-- COURSE  
-- SCORE  

COURSE:  
- name  
- address  
- hole 1 (par/length)  
- hole 2...18  

SCORE:  
- hole 1  
- hole 2...18  

SCORECARD: (will only be temporary object, to be deleted when round is complete)  
- PLAYER*

* = multiple objects

Is this a good design? I somehow feel that I should have a permanent SCORECARD objects that will hold PLAYER objects, one COURSE object and 18 holes attributes that will get values like “3:3:5:4” (score for each player, colon being seperator).

I hope this is not too messy posting, and please, forgive my english.

  • 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-20T22:35:53+00:00Added an answer on May 20, 2026 at 10:35 pm

    I would consider extrapolating the hole attributes to be an entity. Attributes would be “par” and “length”. Then, have a relationship so that a course entity has many holes. Each hole conversely belongs to a specific course.

    The data modeller in XCode is really good for visually creating entities and the relationships between them. I’d recommend experimenting until you feel that you have a good model. Think also about how you will use the model in your code. For example, what sort of look ups will you do?

    For more detailed study it’s worth getting a good book on object modelling. I used Larman’s “Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development”.

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

Sidebar

Related Questions

I'm creating a Trivia app, and need some help designing my model relationships. This
Okay, I really need some help with this. I'm new with designing and stuff,
Need some help with Activerecord Querying in a has_many :through association. Model: Job class
I'm designing a database for our CRM system and need some help with the
All - I need some help designing a table for a Postgre SQL database.
I need help in designing a Chess game. I've already started but haven't got
Need some help designing a bash script for grepping IP addresses from auth.log and
I need some help designing a friends system The mysql table: friends_ list -
We are designing a client/server program and I need some help with a design
I've been tackling this for a while, and I need some help designing my

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.