Skip navigation.
 
mlRe: KVC and KVO for arrays
FROM : Hans van der Meer
DATE : Tue Feb 12 23:07:08 2008

On 12 feb 2008, at 22:45, Kyle Sluder wrote:

> On 2/12/08, Hans van der Meer <<email_removed>> wrote:

>> Is there something I do not see? Or do I have to add all the "indexed
>> accessor methods"  to NSArray and NSMutableArray in a category?
>> That generates another question: in that case, must I program for
>> manual observing by bracketing the implementation statements with
>> [self willChangeValueForKey ..etc] messages?

>
> You seem to be confused... why would you be listening for changes to
> custom properties on the array itself?
>


I guess so. My intention is to have the NSArrayController following 
the changes in the mutable array in order to show these changes in a 
tableview in the GUI. As I understand it, to accomplish this the 
NSArrayController should observe the changes in the array. Doing 
simply [array addObject:] apparently does not trigger the 
NSArrayController into having the tableview follow the change.

Hans van der Meer

Related mailsAuthorDate
mlKVC and KVO for arrays Hans van der Meer Feb 12, 21:32
mlRe: KVC and KVO for arrays Hans van der Meer Feb 12, 23:07
mlRe: KVC and KVO for arrays Adam P Jenkins Feb 12, 23:09
mlRe: KVC and KVO for arrays mmalc crawford Feb 13, 14:00
mlRe: KVC and KVO for arrays Adam P Jenkins Feb 13, 15:37
mlRe: KVC and KVO for arrays mmalc crawford Feb 13, 16:34
mlRe: KVC and KVO for arrays Adam P Jenkins Feb 13, 17:51
mlRe: KVC and KVO for arrays Jens Alfke Feb 13, 18:08
mlRe: KVC and KVO for arrays Adam P Jenkins Feb 13, 20:24
mlRe: KVC and KVO for arrays mmalc crawford Feb 13, 22:21
mlRe: KVC and KVO for arrays mmalc crawford Feb 13, 22:30
mlRe: KVC and KVO for arrays Kyle Sluder Feb 13, 22:30
mlRe: KVC and KVO for arrays Adam P Jenkins Feb 13, 22:57
mlRe: KVC and KVO for arrays Ken Thomases Feb 13, 23:05
mlRe: KVC and KVO for arrays Jens Alfke Feb 14, 00:33
mlRe: KVC and KVO for arrays Adam P Jenkins Feb 14, 07:47
mlRe: KVC and KVO for arrays John Dann Feb 14, 15:05
mlRe: KVC and KVO for arrays Nick Toumpelis Feb 15, 10:54
mlRe: KVC and KVO for arrays John Dann Feb 15, 11:27
mlRe: KVC and KVO for arrays Nick Toumpelis Feb 15, 13:20
mlRe: KVC and KVO for arrays Hans van der Meer Feb 15, 14:44
mlRe: KVC and KVO for arrays John Dann Feb 15, 15:10
mlRe: KVC and KVO for arrays Stephen Hoffman Feb 15, 16:18
mlProper use of #define to aid in compile-time checking of strings (was KVC and KVO for arrays) John Dann Feb 15, 16:52
mlRe: KVC and KVO for arrays Kyle Sluder Feb 15, 18:43
mlRe: Proper use of #define to aid in compile-time checking of strings (was KVC and KVO for arrays) Nick Toumpelis Feb 15, 22:23
mlRe: Proper use of #define to aid in compile-time checking of strings (was KVC and KVO for arrays) Jonathan Dann Feb 16, 17:21