Re: KVC and arrays
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