title: How to read the plist file OF MY APP on Mac OSX?
body: <p>My Mac OS X app has (as all apps do) a plist file in its bundle which defines the bundle version, bundle name, etc.</p>
  
  <p>I want to read this plist at runtime but I don't know how to do this! I even don't know where this file is located and cannot find it !!</p>
  
  <p>Please, note that I am NOT looking for the plist file created in <code>/Library/Preferences</code> which is linked to the <code>NSUserDefaults</code> (this question is raised in other posts on stackoverflow and I perfectly know how to read this file).</p>
  
  <p>I tried the following code (AG-Info.plist being the name of the plist in my bundle):</p>
  
  <pre><code>NSString *path = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"AG-info.plist"];
   NSDictionary *plistDictionary = [[NSDictionary dictionaryWithContentsOfFile:path] retain];
  </code></pre>
  
  <p>But it doesn't work ! (it works in iOS apps)</p>
  
  <p>Somebody knows how to find my bundle plist?</p>