• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core Data Rookie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Core Data Rookie
      • From: mmalcolm crawford <email@hidden>
    • Re: Core Data Rookie
      • From: Charilaos Skiadas <email@hidden>
  • Prev by Date: Re: NSURLConnection dependency on RunLoop (Sanity check)
  • Next by Date: Re: Core Data: New Error Message [SOLVED?]
  • Previous by thread: Re: Working with PDFlib; and slamming the wall - XCode 2.1 doesn't link static library.
  • Next by thread: Re: Core Data Rookie
  • Index(es):
    • Date
    • Thread