• 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
Questions about CoreData and object graphs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Questions about CoreData and object graphs


  • Subject: Questions about CoreData and object graphs
  • From: William Squires <email@hidden>
  • Date: Wed, 14 Nov 2012 20:30:17 -0600

1) Can CoreData properly manage an object graph where the objects form a circular reference (i.e.)

Entity Node
  int nodeType
  Node onTopOf // 1:1 relationship to another Node entity
  Node under // another 1:1 relationship
End

This would be a doubly-linked list in a circular queue so that you could go either direction from any Node entity. My guess is… no.

2) Without CoreData, if I simply declare in my model classes that they implement <NSCoding> (and I implement all the initWithCoder: and encodeWithCoder: methods), will this properly handle such a situation (i.e. a possibly circular object graph)?



_______________________________________________

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: Questions about CoreData and object graphs
      • From: Bob Cromwell <email@hidden>
  • Prev by Date: Re: What makes a URL Handler be persistent?
  • Next by Date: Re: Questions about CoreData and object graphs
  • Previous by thread: Re: What makes a URL Handler be persistent?
  • Next by thread: Re: Questions about CoreData and object graphs
  • Index(es):
    • Date
    • Thread