title: where to put application data and temp files on mac
body: <p>We have a Windows Java desktop application that creates some <strong>configuration files</strong> at <code>%APPDATA%</code> and creates <strong>logs</strong> at <code>%TEMP%</code> location. Now we are planning to release that desktop application for Mac OS X. We are facing following difficulties:</p>
  
  <ol>
  <li>We do not want to keep application data within <code>.app</code> (file extension app) so please suggest where else we can keep our configuration files.</li>
  <li>We do not want to keep temporary files at <code>%TEMP%</code> location in Mac OS X because Mac OS X automatically cleans the <code>%TEMP%</code> location as per schedule. </li>
  </ol>
  
  <p><strong>So we do not want data lose from temp and do not want to keep data with in .app</strong>. Please suggest. </p>
  
  <p>Thanks</p>