Note that there are some explanatory texts on larger screens.

plurals
  1. POiphone sdk - object model context design help
    primarykey
    data
    text
    <p>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...</p> <p>-User can add players (with first/last name, initials)<br> -User can add courses (with name, address details, holes with par/lenght)<br> -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 <strong>in addition</strong> to the best score ever on that same course.<br> -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.<br> -When managing players, adding/deleting, user can also browse the rounds that player has ever played.</p> <p>What is the best approach to design entities? I already got some consultation and he suggested that I should have it like this:</p> <pre><code>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 </code></pre> <p>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).</p> <p>I hope this is not too messy posting, and please, forgive my english.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload