Re: KeyPathsForValuesAffectingValueForKey confusion

2010-05-10 Thread Trygve Inda
> On May 10, 2010, at 9:12 AM, Trygve Inda wrote: > >> I have an NSArrayController containing items and a text field in a window >> which is bound to a custom class "MyController" via model key path: >> filteredResultsString >> >> >> -(NSString *)filteredResultsString >> { >> return ([[NSNumber

Re: KeyPathsForValuesAffectingValueForKey confusion

2010-05-10 Thread Keary Suska
On May 10, 2010, at 9:12 AM, Trygve Inda wrote: > I have an NSArrayController containing items and a text field in a window > which is bound to a custom class "MyController" via model key path: > filteredResultsString > > > -(NSString *)filteredResultsString > { > return ([[NSNumber numberWithIn

KeyPathsForValuesAffectingValueForKey confusion

2010-05-10 Thread Trygve Inda
I have an NSArrayController containing items and a text field in a window which is bound to a custom class "MyController" via model key path: filteredResultsString -(NSString *)filteredResultsString { return ([[NSNumber numberWithInt:[[itemsController arrangedObjects] count]] stringValue]); } T