title: Problem with NSSearchPathForDirectoriesInDomains
body: <p>I am trying to work directories. Unfortunately i get a non-writeable directory when I run NSSearchPathForDirectoriesInDomains. What I get is:</p>
  
  <blockquote>
    <p>/Users/me/Library/Application Support/iPhone Simulator/User/Documents</p>
  </blockquote>
  
  <p>When I run other people's examples I get:</p>
  
  <blockquote>
    <p>/Users/me/Library/Application Support/iPhone Simulator/User/Applications/6958D21C-C94B-4843-9EF1-70406D0CA3A3/Documents</p>
  </blockquote>
  
  <p>which is writeable.</p>
  
  <p>The snippet of the code used is</p>
  
  <pre><code>NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
  NSString *documentsDirectory = [paths objectAtIndex:0];
  NSLog(documentsDirectory);
  </code></pre>
  
  <p>What do I need to do allow me to get the same long directory structure?</p>