title: Right way to store persistent but volatile app data in Mac os
body: <p>I need to store some data of my app and I'm trying to figure out where should I place it. I need to save the user-related statistic database which is growing during the user PC activity. I also need to store log file which I don't want to be deleted during the restart. So I don't consider it temporary but persistent instead.
  I've read the <a href="http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFileSystem/Articles/WhereToPutFiles.html#//apple_ref/doc/uid/TP40001411-BAJHCHJI" rel="nofollow">article</a> but it confused me still more. I didn't find the right way to store my data. The only directory I find to be the right way is "Application support" but Apple <a href="http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFileSystem/Articles/LibraryDirectory.html#//apple_ref/doc/uid/20002282-BAJHCHJI" rel="nofollow">states</a> unambiguously <em>"This directory should never contain any kind of user data."</em></p>
  
  <p>So is there a way to store the data without guide violation?
  I just don't want to reinvent the wheel and store my data in an inappropriate place so the end-user would curse me :)</p>