title: How to program a NSOutlineView?
body: <p>I am having trouble creating a NSOutlineView in Xcode 8 (Swift 3). I have a plist file with some information that I would like to present in an OutlineView. The plist file looks as following (example):</p>
  
  <pre><code>Root                      Dictionary    *(1 item)
      Harry Watson          Dictionary    *(5 items)*
          name              String        Harry Watson
          age               Int           99
          birthplace        String        Westminster
          birthdate         Date          01/01/1000
          hobbies           Array         *(2 items)*
              item 0        String        Tennis
              item 1        String        Piano
  </code></pre>
  
  <p>The OutlineView should look pretty similar, like follow:</p>
  
  <pre><code>name            Harry Watson
  age             99
  birthplace      Westminster
  birthdate       01/01/1000
  &gt; hobbies       ...             (&lt;- this should be expandable)
  </code></pre>
  
  <p>I already searched for NSOutlineView tutorials on Google, but everything I found was raywenderlich.com, so I read a bit but in my opinion it isn't that easy. 
  So I am wondering whether you could help me with the exact example above and give me some code examples, especially regarding this function: </p>
  
  <pre><code>func outlineView(_ outlineView: NSOutlineView, viewFor tableColumn: NSTableColumn?, item: Any) -&gt; NSView? {}
  </code></pre>
  
  <p>I am not sure what to write in there. </p>
  
  <p>If you have any questions, let me know.</p>
  
  <p>Thanks in advance and kind regards</p>