Re: Core Data Conundrum
Re: Core Data Conundrum
- Subject: Re: Core Data Conundrum
- From: Rick Mann <email@hidden>
- Date: Sat, 12 Dec 2009 17:00:03 -0800
On Dec 12, 2009, at 16:58:45, Kyle Sluder wrote:
> On Sat, Dec 12, 2009 at 4:30 PM, Rick Mann <email@hidden> wrote:
>> Hi. I'm trying to set up a model for a Node and a Segment. A Segment exists between Nodes. Each Segment has a node1 and node2 attribute, and each Node can have multiple Segments. I don't seem to be able to model this relationship; I can have either node1 with an inverse of segments, or node 2, but not both.
>
> Segment:
> head ->> Node
> tail ->> Node
>
> Node:
> segHeads ->> Segment
> segTails ->> Segment
>
> This keeps your directionality.
Thanks. Yeah, I thought of this approach, but it seems a little clunky, having to check both segHeads & segTails each time I want all segments on a Node.
But I'll keep it in mind. Thanks!
--
Rick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden