• 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: KVC and arrays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVC and arrays


  • Subject: Re: KVC and arrays
  • From: mmalc Crawford <email@hidden>
  • Date: Fri, 22 Jun 2007 10:52:52 -0700


On Jun 22, 2007, at 9:15 AM, Brian Smith wrote:

To get it to observe changes in the array's objects you need to have someObject conform to the KVC indexed accessor pattern which is described in the "Key Value Coding Programming Guide".

This is not accurate.
It is not *necessary* for 'someObject' to implement the indexed accessors. You must simply modify the array in a KVO-compliant manner. The most reliable way is typically to use the proxy returned from 'mutableArrayValueForKey:'...
See <http://homepage.mac.com/mmalc/CocoaExamples/controllers.html> -- "Programmatic modifications to arrays not noticed by table view".


mmalc

_______________________________________________

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


References: 
 >KVC and arrays (From: "Daniel Angermeier" <email@hidden>)
 >Re: KVC and arrays (From: Brian Smith <email@hidden>)

  • Prev by Date: Re: WebKit and POST requests
  • Next by Date: Re: WebKit and POST requests
  • Previous by thread: Re: KVC and arrays
  • Next by thread: Re: KVC and arrays
  • Index(es):
    • Date
    • Thread