title: Cocoa PreferencePane User Defaults always stored in com.apple.systempreferences.plist
body: <p>I'm developing a PreferencePane in Xcode 4.1, and I can't seem to get it to store the preference values in anything other than com.apple.systempreferences.plist.</p>
  
  <p>I have set the Bundle Identifier for my app in the MyApp-Info.plist file, but this does not seem to be getting picked up.</p>
  
  <p>I have searched extensively for an answer, but cannot find any. You can easily replicate the problem as follows:</p>
  
  <p><strong>In XCode:</strong></p>
  
  <ol>
  <li>Create a new PreferencePane project</li>
  <li>Add a NSTextField to the .xib</li>
  <li>Bind the text field value to Shared User Defaults Controller, with any key name</li>
  <li>Build the project</li>
  <li>Right-click on the icon under Products and select "Open with External Editor" to install to System Preferences (this user only)</li>
  </ol>
  
  <p><strong>In System Preferences:</strong></p>
  
  <ol>
  <li>Open your pref pane, and type any value in the text box.</li>
  <li>See that your preference value is saved in ~/Library/Preferences/com.apple.systempreferences.plist</li>
  </ol>
  
  <p>But why doesn't it create a new plist file with your specified bundle identifier, and store the preference value in there?</p>
  
  <p>Is this a bug in Xcode 4.1 / Mac OS 10.7 ? Any help much appreciated!</p>