0

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?

Quinn Taylor
  • 44,553
  • 16
  • 113
  • 131
plucked
  • 421
  • 7
  • 18

1 Answers1

1

Use the selection property of the array controller, instead of arrangedObjects, for the second table view.

What you're doing is called a master/detail layout; the documentation has a tutorial on it.

Peter Hosey
  • 95,783
  • 15
  • 211
  • 370