Re: Can an object's relationship point to itself?
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