Re: Core Data Rookie
Re: Core Data Rookie
- Subject: Re: Core Data Rookie
- From: Charilaos Skiadas <email@hidden>
- Date: Thu, 21 Jul 2005 19:06:39 -0500
Have you looked at CoreRecipes?
http://developer.apple.com/samplecode/CoreRecipes/CoreRecipes.html
On Jul 21, 2005, at 6:55 PM, Andrew Shamel wrote:
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:
40math.uchicago.edu
This email sent to email@hidden
Haris
_______________________________________________
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