• 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
Array Key-value Paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Array Key-value Paths


  • Subject: Array Key-value Paths
  • From: Sheehan Olver <email@hidden>
  • Date: Tue, 25 May 2004 22:50:19 -0500

I had a question about key-value paths with arrays. If I have a property called "array", then

[self valueForKeyPath:@"array.description"]

returns an NSArray of the description properties of all the objects in "array". So my question is what happens when you call:

[self setValue:descriptionArray
forKeyPath:@"array.description"]

It can't call "setDescription:" on anything because "array" is not populated. I couldn't find a detailed description of key-value paths in the documentation, unless I just looked in the wrong place.

Thanks,
Sheehan Olver
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Array Key-value Paths
      • From: Allan Odgaard <email@hidden>
    • Re: Array Key-value Paths
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Cocoa Rules
  • Next by Date: Re: How to get date string formats in System International Preferences
  • Previous by thread: Re: Cocoa Rules - ObjC "evalgelism"
  • Next by thread: Re: Array Key-value Paths
  • Index(es):
    • Date
    • Thread