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

Re: Array Key-value Paths


  • Subject: Re: Array Key-value Paths
  • From: Scott Anguish <email@hidden>
  • Date: Wed, 26 May 2004 00:53:10 -0400

On May 25, 2004, at 11:50 PM, Sheehan Olver wrote:

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"]


good question. Not sure honestly. My expectation would be that it'd either barf trying to call setDescription on array.

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.


KVC has documentation on this, including the funky array behavior I think.
_______________________________________________
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.


References: 
 >Array Key-value Paths (From: Sheehan Olver <email@hidden>)

  • Prev by Date: Re: How to get date string formats in System International Preferences
  • Next by Date: Re: [OFFTOPIC] Inspiration - This was stopped 2 hours ago
  • Previous by thread: Array Key-value Paths
  • Next by thread: Re: Array Key-value Paths
  • Index(es):
    • Date
    • Thread