NSDictionary valueForKeyPath:

2008-12-14 Thread jonat...@mugginsoft.com
I was surprised to learn that a hierarchy of NSDictionary objects can be queried with valueForKeyPath: NSDictionary *dict0 = [NSDictionary dictionaryWithObjectsAndKeys:@got me!, @2, nil]; NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:dict0, @1, nil]; NSLog([dict

Re: NSDictionary valueForKeyPath:

2008-12-14 Thread Ken Thomases
On Dec 14, 2008, at 9:21 AM, jonat...@mugginsoft.com wrote: I was surprised to learn that a hierarchy of NSDictionary objects can be queried with valueForKeyPath: NSDictionary *dict0 = [NSDictionary dictionaryWithObjectsAndKeys:@got me!, @2, nil]; NSDictionary *dict = [NSDictionary

Re: NSDictionary valueForKeyPath:

2008-12-14 Thread jonat...@mugginsoft.com
On 14 Dec 2008, at 16:06, Ken Thomases wrote: I was surprised to learn that a hierarchy of NSDictionary objects can be queried with valueForKeyPath: NSDictionary *dict0 = [NSDictionary dictionaryWithObjectsAndKeys:@got me!, @2, nil]; NSDictionary *dict = [NSDictionary