title: mac app main bundle resource permission with sandbox and entitlement
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/511019/mac-os-x-where-should-i-store-save-games-for-a-game-delivered-as-a-bundle">Mac OS X: Where should I store save games for a game delivered as a bundle?</a>  </p>
  </blockquote>
  
  
  
  <p>i am migrating my iOS game to mac. The file I used to store high scores is saved under xxx.app/Contents/Resources. However, when I enable the sandbox and entitlement, the directory becomes unwritable. I tried xxx.app and xxx.app/Contents as well without luck. 
  so which directory should I use or which entitlement should I add? </p>
  
  <p>EDIT
  I have tried ~/Library/Application Support/Your Game Name/ and it does not show permission errors but unable to save the game data. there is no Library under user/my_name, but one under unser/shared. Do i need to add any entitlements? </p>
  
  <p>EDIT 2: 
  Please dont close this question. The answer to earlier question does not work for me. Instead, the flagged answer of this question is correct. </p>