Sorry for the clumsy title.
Imagine a simple UI to display the first names of a person's children...
As I initially only had one Person, I created an array controller and bound it to appDelegate.person1.children - this worked fine, as did binding a table column to display the first names.
However, I have since extended my program so that rather than a 'person1' there is an array or people maintained in the AppDelegate. I figured that I could simply keep the person1 attribute however, and use it to return the first item in the list:
- (Person *)person1{
return [[self people] objectAtIndex:0];
}
I have confirmed everything is created correctly (during runtime), but I can't get the bound table column to display the first names of person1's kids.
Something to with KVO? How do I make sure that the table knows that when the persons array changes, person1 changes (and therefore the UI)?
Thanks