title: Sidebar with Groups driven by Core Data
body: <p>I've searched everywhere for a sidebar example / tutorial that uses Core Data.  The only one I've found is this tutorial by Mikael Hallendal:</p>
  
  <p><a href="http://simplyhacking.com/source-list-with-core-data.html" rel="nofollow">http://simplyhacking.com/source-list-with-core-data.html</a></p>
  
  <p>I'll be honest, I'm new to programming and had trouble getting it to work.  Normally, given enough time, I can figure something out for myself.  I've been at this for over a week though with no such luck.</p>
  
  <p>What I am after is a sidebar with three group items:</p>
  
  <ul>
  <li>A static group at the top with one child item.</li>
  <li>A second group called Favourites that will display all contents of my entity that have a "Favourites" boolean set to YES.</li>
  <li>And a third group called History that will display the remaining contents of my entity.</li>
  </ul>
  
  <p>The best example I have found is Apple's SidebarDemo:</p>
  
  <p><a href="http://developer.apple.com/library/mac/#samplecode/SidebarDemo/Introduction/Intro.html" rel="nofollow">http://developer.apple.com/library/mac/#samplecode/SidebarDemo/Introduction/Intro.html</a></p>
  
  <p>I tinkered with the sample code and managed to replace their static arrays with a fetched array, but of course it doesn't react with the core data at all.  It simply displays the array.</p>
  
  <p>If anyone can help me out with this I will be eternally grateful.</p>