Cocoa API for Disk Space Usage Breakdown
===

I would like to be able to display a disk space usage breakdown chart similar to the one used in the System Information app built into Mac OS X (see image below). I've searched but have been unable to find an API which returns any detailed breakdown. The best I can find is the total disk space used.

As far as I can tell, the data in the screenshot (which actually looks incorrect in this example) is not calculated by sizing the default Music, Movies, Photos and Application folders. It does seem to add up the data used by specific file types.

Thanks for any help.

![Disk Space Usage Mac OS X][1]


  [1]: http://i.stack.imgur.com/MbICu.png