On Thu, Feb 21, 2008 at 2:14 PM, John Gustafsson
<[EMAIL PROTECTED]> wrote:
>  I have kind of a newbie question that I was hoping someone could help
>  me with. I'm trying to learn Cocoa/Core Data coming from a different
>  background and I got some help from a friend but we have struck out
>  and can't figure out what to do next. The idea is very simple. I want
>  an array of arrays of cards. The first list should list series (for
>  example common kanji, mayan temples, cocoa coding heroes, etc) and the
>  second list individual cards. Having selected a card you should be
>  able to edit the front and back of that card.

OK, so you seem to be having a data modeling issue.  First, abandon
the concept of arrays; Core Data doesn't use them, and you're really
talking about set theory, so we'll talk about sets.

So you want to have a set A of subjects.  You also want a mapping F
from a subject to a set of what sound to me like flashcards.  Elements
of set A are of type Subject, elements of set F(A) are of type
Flashcard.  A Subject has a title, and a Flashcard has a front side
and a back side.

>From here, it should be very clear how you would model this in the
Core Data model designer.

HTH,
--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to