Theocacao
Leopard
Design Element
Comment on "Key-Value Coding (KVC) and Generic Programming"
by Tito Ciuro — Mar 31
Thanks for the article! I'd like to see keypaths explained a little better. For example, if CDCPerson had an NSArray *siblings (with a few CDCPerson), how could we obtain the list the siblings?

I'd think we would call it via [person valueForKeyPath: @"siblings.firstName"], but I'm not sure if I'd need extra accessors, especially if we start dealing with a fairly nested dictionary. How would that work?

Thanks again!
Back to "Key-Value Coding (KVC) and Generic Programming"
Design Element

Copyright © Scott Stevenson 2004-2015