title: pathForResource ofType returns nil
body: <p>here is the code i am working with.</p>
  
  <pre><code>NSString* path = [[NSBundle mainBundle] pathForResource:@"file" ofType:@"plist"];
  
  if(path == nil)
  {
  NSLog(@"file not found");
  }
  </code></pre>
  
  <p>when i run this it prints file not found in the console.</p>
  
  <p>my file.plist is in the supporting files folder in my cocoa project. where does mainBundle look for files at exactly. this is stumping me quite a bit. i get that it looks for the .app file, but when developing the app where doe mainBundle look?</p>