• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
valueForKeyPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

valueForKeyPath


  • Subject: valueForKeyPath
  • From: Steve Cronin <email@hidden>
  • Date: Thu, 30 Apr 2009 19:00:51 -0500

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


  • Follow-Ups:
    • RE: valueForKeyPath
      • From: Ulai Beekam <email@hidden>
  • Prev by Date: Re: Writable dir for non-admin user outside user's dir
  • Next by Date: RE: valueForKeyPath
  • Previous by thread: Re: Writable dir for non-admin user outside user's dir
  • Next by thread: RE: valueForKeyPath
  • Index(es):
    • Date
    • Thread