title: Strange behavior with Apple SidebarDemo
body: <p>I have to add a source list (à la iTunes) to my Mac application. For that, I try the (<a href="http://developer.apple.com/library/mac/#samplecode/SidebarDemo/Introduction/Intro.html" rel="nofollow noreferrer">SidebarDemo from Apple</a>). It works fine. I added a button in this demo to demonstrate the effect of the <code>reloadData</code> method on <code>NSOutlineView</code>. And as you can see in the image there is a problem (on the left, before the <code>reloadData</code> call, and on the right, after the <code>reloadData</code> call). The badges disappear, icons change, etc.</p>
  
  <p>What is the problem? Should I avoid using <code>reloadData</code> on <code>NSOutlineView</code>?</p>
  
  <p>I'm using OS X 10.8.2, SDK 10.8 and Xcode 4.5.2.</p>
  
  <p>You can download the modified SidebareDemo project <a href="http://www.olofweb.com/stackoverflow/SidebarDemo.zip" rel="nofollow noreferrer">here</a>.</p>
  
  <p>Thank you!</p>
  
  <p><img src="https://i.stack.imgur.com/YKSNn.jpg" alt="Before and after..."></p>