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.

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.

I have searched extensively for an answer, but cannot find any. You can easily replicate the problem as follows:

**In XCode:**

1. Create a new PreferencePane project
2. Add a NSTextField to the .xib
3. Bind the text field value to Shared User Defaults Controller, with any key name
4. Build the project
5. Right-click on the icon under Products and select "Open with External Editor" to install to System Preferences (this user only)

**In System Preferences:**

1. Open your pref pane, and type any value in the text box.
2. See that your preference value is saved in ~/Library/Preferences/com.apple.systempreferences.plist

But why doesn't it create a new plist file with your specified bundle identifier, and store the preference value in there?

Is this a bug in Xcode 4.1 / Mac OS 10.7 ? Any help much appreciated!