Core Data Beginner Question
Core Data Beginner Question
- Subject: Core Data Beginner Question
- From: Mike Burns <email@hidden>
- Date: Thu, 14 Jun 2007 15:18:41 -0400
I'm a little unclear on how to set up certain relationships in a Core
Data data model for a NSPersistentDocument project I'm working on.
There are three main objects (with a bunch of other ones that are
omitted for simplicity) -
• project
• scene
• object
Each project has a to-many relationship with both the scene and
object objects:
• project <---->>scene
• project <---->>object
In addition to those relationships however, the following occurs as
well:
• each project has an initial scene
• each scene has 4 directions - north/south/east/west - each
direction possibly pointing to another scene object
In C++, my Scene object would have 4 pointer variables -
northScene, southScene, westScene, eastScene - each one possibly
pointing to another Scene object. What is the best way to represent
that kind of a relationship in a Core Data data model?
Thanks!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden