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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com