Re: Core Data: right way to gather all elements of a to-many relationship?
Re: Core Data: right way to gather all elements of a to-many relationship?
- Subject: Re: Core Data: right way to gather all elements of a to-many relationship?
- From: "I. Savant" <email@hidden>
- Date: Wed, 11 Feb 2009 19:48:34 -0500
On Feb 11, 2009, at 7:37 PM, Luke Evans wrote:
... and it's cold comfort to find that the behaviour is exactly the
same. So, at least there isn't 'another' problem :-)
Well, actually, I realize now that my statement was ambiguous. I
meant that asking via -valueForKey: and providing the keypath should
do the same thing *you originally intended* and return a set *as
expected*.
If using this code (with all your work-arounds removed) produces
the same result, you've got a problem in your code and it's best you
"come clean" with a complete code listing of the relevant parts.
To be clear: I have a project of my own that regularly uses the
same approach (finding the siblings by a key path @"parent.children")
via [self valueForKeyPath:@"..."] and it works as expected every time.
Do I remember correctly that you're using GC? Perhaps you have a
dangling pointer somewhere?
--
I.S.
_______________________________________________
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