In my MainController, there's a persons array, which binds to a NSArrayController. The persons's name are displayed in a table name column. If I bind a button to NSArrayController add method, I can add the button to add a new person, but if add the new person in method, the the tabel doesn't show the new person, I don't know why.
my code to add new person
Person *p =[[Person alloc]init];
[self.persons addObject:p];
UPDATE: I know the answer by http://chanson.livejournal.com/85659.html because NSMutableArray addObject isn't KVC, so I need to use
[[self mutableArrayValueForKey:@"persons"] addObject:person];