title: initWithContentsOfFile:encoding:error: - NSInvalidArgumentException
body: <p>I think I am missing something <strong><em>very basic</em></strong> here, but here it goes.</p>
  
  <p>The inline help in XCode tells me that <strong><em>initWithContentsOfFile:</em></strong> deprecated</p>
  
  <pre><code>NSMutableDictionary *myDict = [[NSMutableDictionary alloc] initWithContentsOfFile:plistPath];
  </code></pre>
  
  <p>Instead <strong><em>initWithContentsOfFile:encoding:error:</em></strong> should be used.</p>
  
  <pre><code>NSMutableDictionary *myDict = [[NSMutableDictionary alloc] initWithContentsOfFile:plistPath encoding:NSUTF8StringEncoding  error:NULL];
  </code></pre>
  
  <p>My problem is that <strong><em>initWithContentsOfFile:</em></strong> works fine while the code below raises an error.</p>
  
  <pre><code>NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"prefs" ofType:@"plist"];
  Load preferences into symbol dictionary
  NSMutableDictionary *myDict = [[NSMutableDictionary alloc] initWithContentsOfFile:plistPath encoding:NSUTF8StringEncoding  error:NULL];
  </code></pre>
  
  <p>ERROR:</p>
  
  <pre><code>2011-12-08 16:27:12.209  -[__NSPlaceholderDictionary initWithContentsOfFile:encoding:error:]: unrecognized selector sent to instance 0x4b2a370
  2011-12-08 16:27:12.212 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSPlaceholderDictionary initWithContentsOfFile:encoding:error:]: unrecognized selector sent to instance 0x4b2a370'
  </code></pre>