title: Problem getting path to .plist using [[NSBundle mainBundle] pathForResource
body: <p>I'm an Objective C noob, and I don't know enough to explain the following problem.</p>
  
  <p>This code works:</p>
  
  <pre><code>NSString *plistPath = @"/Users/andrewf/MyApp/Resources/Plates.plist";
  dicPlates = [[NSDictionary alloc] initWithContentsOfFile:plistPath];
  </code></pre>
  
  <p>My dictionary object is loaded with values as expected.</p>
  
  <p>This code does not work:</p>
  
  <pre><code>NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"Plates" ofType:@"plist"];
  dicPlates = [[NSDictionary alloc] initWithContentsOfFile:plistPath];
  </code></pre>
  
  <p>plistPath comes back with a value of nil. This is the case irrespective of whether I include inDirectory:@"Resources" in the call or not. All the examples that I have found do not include inDirectory when trying to open a .plist file in the Resources directory.</p>
  
  <p>I have confirmed that the file exists in the correct location and even recreated it to be sure.</p>
  
  <p>This seems like such a simple problem, but I am mystified. Please assist.</p>