Re: Is it possible to traverse dictionaries and arrays using KVC?
Re: Is it possible to traverse dictionaries and arrays using KVC?
- Subject: Re: Is it possible to traverse dictionaries and arrays using KVC?
- From: Kyle Sluder <email@hidden>
- Date: Tue, 16 Aug 2011 13:02:30 -0700
On Tue, Aug 16, 2011 at 12:52 PM, Jens Alfke <email@hidden> wrote:
>
> On Aug 16, 2011, at 11:03 AM, Tito Ciuro wrote:
>
>> In KVC, the setValue:forKeyPath: method is super handy to set values in deep hierarchies. I was wondering if it would be possible to access array elements using KVC.
>
> I asked this a couple of weeks ago and was told the answer is “no”. Apparently because implementing KV observing of such key paths would be too difficult.
Tito is asking about KVC, not KVO (or in the case of your question, bindings).
Either way, I believe you're correct, and there's no way to get at
individual indexed members of an ordered collection via
-valueForKeyPath:.
--Kyle Sluder
_______________________________________________
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