• 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
Re: Core Data Conundrum
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Core Data Conundrum
      • From: Kyle Sluder <email@hidden>
References: 
 >Core Data Conundrum (From: Rick Mann <email@hidden>)
 >Re: Core Data Conundrum (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Core Data Conundrum
  • Next by Date: Re: Core Data Conundrum
  • Previous by thread: Re: Core Data Conundrum
  • Next by thread: Re: Core Data Conundrum
  • Index(es):
    • Date
    • Thread