Hello,


Imagine the following example:



Entity               Attributes          Relationships

--------         ----------        ---------------

WeeklyMenu     date                   menuItems (To-many Destination:
MenuItems)

MenuItems        dish                   week (Destination: WeeklyMenu)

                        chef

                        cost

Category           chef

                        dish



I pre-populate Category from a .plist.



Chef                    Dish

------              -------

LunchChef          BLT

LunchChef          Soup

DinnerChef          Soup

DinnerChef          Salad

DinnerChef          Steak



When a new date is created, I want MenuItems to automatically have records
corresponding to all of the categories.  How would you do this?  The example
is a bit contrived but is analogous to my actual application.  The idea is
to have the same categories every week with varying prices.  Feel free to
suggest a different model if mine is not appropriate. I am able to construct
an interface which allows for new dates and displays the pre-populated
categories, but I am having difficulty figuring out how to create the
MenuItems automatically.



Thanks,

S
_______________________________________________

Cocoa-dev mailing list ([email protected])

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