Core Data Rookie
Core Data Rookie
- Subject: Core Data Rookie
- From: Andrew Shamel <email@hidden>
- Date: Thu, 21 Jul 2005 19:55:30 -0400
And one more email from a clueless new Core Data programmer...
My problem is this: I want to create an application that keeps track
of recipes. I have done this handily so far, up to the handling of
the ingredients. I want the UI to have a column listing the various
recipes, and a table listing the ingredients for the selected recipe.
The application's data model contains two entities: Recipe and
Ingredient. As it stands now, each entity has a reciprocal
relationship to the other, on the order of "recipes" and
"ingredients." The relationship from Recipe to Ingredient is one-to-
many, and the relationship from Ingredient to Recipe is one-to-one,
as a recipe has many ingredients, but each ingredient has only one
recipe.
Thus far, I have been able to make the Ingredients table display ALL
of the ingredients created, but I am having trouble figuring out how
to set an ingredient's recipe relationship to point to the selected
recipe, and likewise, how to make the ingredients table display only
those that belong to the selected recipe.
My guess is that I lack a sufficient understanding of Core Data.
I've looked at any number of Apple documentation pages, and have done
Cocoa Dev Central's Core Data tutorial. The trouble is, the tutorial
is really just a walk-through, and it doesn't do much in the way of
explaining what's actually going on.
Thank you for your patience!
--Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden