On Feb 11, 2009, at 5:38 PM, Luke Evans wrote:

Clearly, you wouldn't even notice the switcheroo if you were driving the relationship via a more generic collection-like interface (e.g. like using -count, using fast enumeration or other things that apply equally well to a range of concrete collection objects - or at least arrays and sets).

Well, I'd say that, rather than the odd work-around you're using now, you should use KVC.

[[self valueForKeyPath:@"parent.elements"] allObjects]

... this should do the same thing with the expected result. If it does not, there is another problem with your code.

--
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

Reply via email to