I have a NSArrayController with following Object:
@interface AdressCard : NSObject <NSCoding> {
NSString* name;
NSString* street;
NSMutableArray* tasks;
}
I have a simple GUI with an NSTableView to display the first two keys and I want to have a second NSTableView to display the content of the MutableArray (tasks) for the selected item of the first TableView.
How can I do this?
Use the
selectionproperty of the array controller, instead ofarrangedObjects, for the second table view.What you’re doing is called a master/detail layout; the documentation has a tutorial on it.