Folks;

I have a mutable dictionary 'myPerson' which has a key=@"address".
The object stored at @"address" is another  mutable dictionary.

someCity = [myPerson valueForKeyPath:@"address.city"]  --> nil

someCity = [[myPerson valueForKey:@"address"] valueForKey:@"city"] -- > expected value

Why does -valueForKeyPath not work in this circumstance?

Steve

_______________________________________________

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