I'm coming from iOS and trying to build the simplest master-detail OS X app possible but I'm having a hard time transitioning. More specifically, I can't really fathom how I integrate Core Data with an NSTableView using an NSArrayController;

The app currently looks this:
![Contacts app](https://i.stack.imgur.com/NkCW2.png)

My data model looks like this:

![enter image description here](https://i.stack.imgur.com/OoWEf.png)

As you can see it's very simple. I want to be able to select a Group in the source list left, then display all containing Persons in the table view right.

I've managed to connect the NSOutlineView to a simple NSArray, but what is the best way to connect it to all Group objects, using an NSTreeController, and make it all editable?