• 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: Can an object's relationship point to itself?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can an object's relationship point to itself?


  • Subject: Re: Can an object's relationship point to itself?
  • From: mmalcolm crawford <email@hidden>
  • Date: Fri, 20 May 2005 19:59:51 -0700


On May 20, 2005, at 7:28 PM, Mike Zornek wrote:

Well I've gotten it to work, though I think I may have found a bug (need to
test more to be sure)...


This seems unlikely...

linksTo and linkedFrom are inverse relationships, and as such I was only
ever setting the linkedFrom and then testing linksTo which Core Data manages
(is suppose to) automatically. Well it seems that this wasn't the case for a
"pointer" to itself. When I would set the linkedFrom relationship a linksTo
relationship was never added.
In my code I now set the relationship for each manually and it works. When I
get some time I'll try to recreate it for a possible radar bug. Am posting
it here for the archive.



How have you established the relationships? How have you set up the relationships in your model.


mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Can an object's relationship point to itself? (From: Mike Zornek <email@hidden>)

  • Prev by Date: Re: AddressBook-like TextFields?
  • Next by Date: Re: CoreData and NSTextView
  • Previous by thread: Re: Can an object's relationship point to itself?
  • Next by thread: Re: Can an object's relationship point to itself?
  • Index(es):
    • Date
    • Thread