CoreData

  • Hey guys,

    I'm attempting to follow the Core Data tutorial located at
    cocoadevcentral (http://cocoadevcentral.com/articles/000085.php).

    Anyhow, I've followed it step by step, making adjustments for Xcode
    3.0, and seem to keep hitting a dead end.  I've setup my array
    controllers, bound all my buttons and table columns.  I can click the
    add buttons, which creates a new post, title and author.  However,
    when I click on the "Topic" add button, it creates a new Topic, which
    also seems to create a new Post and visa-versa.  Also, changing
    "title" field of the post also changes the "title" field of the
    Topic.  I've ensured the tables and buttons are bound to the correct
    array controllers, etc.

    The only thing that fixes it is adjusting my data model renaming the
    "title" field of either the post or topic entity, and changing it in
    IB...  Surely I must be doing something wrong, but it seems that I
    can't have two entities with the same attribute name...

    I'm not sure I can make attachments to this list, and I've gone over
    everything two to three times, anyone ever run into a similar scenario
    or could possibly shed some light on my problem?

    Regards,

    Joshua Preston
    <Joshua.Preston...>
  • Hey guys,

    After continuing to tweak it, I've figured out what the problem was--
    basically I think my NIB got corrupted as I was unable to change the
    NSArrayController for the Topics.  I had to rebuild my NIB file.  So
    far I've been unable to reproduce the problem...

    Regards,

    Joshua Preston
    <Joshua.Preston...>

    On May 25, 2008, at 9:14 PM, Joshua Preston wrote:

    > Hey guys,
    >
    > I'm attempting to follow the Core Data tutorial located at
    > cocoadevcentral (http://cocoadevcentral.com/articles/000085.php).
    >
    > Anyhow, I've followed it step by step, making adjustments for Xcode
    > 3.0, and seem to keep hitting a dead end.  I've setup my array
    > controllers, bound all my buttons and table columns.  I can click
    > the add buttons, which creates a new post, title and author.
    > However, when I click on the "Topic" add button, it creates a new
    > Topic, which also seems to create a new Post and visa-versa.  Also,
    > changing "title" field of the post also changes the "title" field of
    > the Topic.  I've ensured the tables and buttons are bound to the
    > correct array controllers, etc.
    >
    > The only thing that fixes it is adjusting my data model renaming the
    > "title" field of either the post or topic entity, and changing it in
    > IB...  Surely I must be doing something wrong, but it seems that I
    > can't have two entities with the same attribute name...
    >
    > I'm not sure I can make attachments to this list, and I've gone over
    > everything two to three times, anyone ever run into a similar
    > scenario or could possibly shed some light on my problem?
    >
    > Regards,
    >
    > Joshua Preston
    > <Joshua.Preston...>
    >
    >
    >
    >
previous month may 2008 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Go to today