Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't I add a child pane plist file into my project's Settings.bundle?

I'm running Xcode 4.1 and I've been following a tutorial about app settings. Everything has been going great up until I get ready to add a plist for a child pane that I want to add.

The video tutorial I'm watching (also using Xcode 4.1) shows the guy right-clicking the settings.bundle and choosing Add File... and then saving a file named More. In the video tutorial, he ends up with a More.plist showing up in the project and also in the settings.bundle right in the same level with the Root.plist. I just get it in the project. Nothing in the settings.bundle, and I can't figure out how to copy it there.

I've also noticed that in the tutorial, in the Project Navigator, the settings.bundle has an icon that looks kind of like an outline of a shield. In my Project Navigator, the settings.bundle looks like a white sheet of paper with a corner folded down.

Anyone know what the heck is going on?

FWIW, the root app settings works fine in the simulator. I can see the stuff I set up just fine. I can click on the link to my child pane and it switches to it, but nothing that I added in the more.plist shows up there.

Any help GREATLY appreciated!!

like image 914
Tad Donaghe Avatar asked Aug 08 '11 05:08

Tad Donaghe


2 Answers

Argh, Apple tends to change things without letting anyone know. The whole settings bundle thing is just not well integrated into XCode if you ask me. If you ever try to localize your application, you will find that you have to manually add the localization folders to the settings.bundle.

Looks like we have to do the same thing to add child menus now, as just adding the plist file does not put it into the settings.bundle.

Here is the set of steps I just tried that worked.

  1. Open up finder, you can right click or two finger click Settings.bundle and choose "Show in Finder".
  2. Right click Settings.bundle in the finder window, choose show package contents.
  3. Copy the new plist file into this the settings.bundle next to the Root.plist
  4. Delete the new plist from the main project.
like image 159
John Sonmez Avatar answered Nov 19 '22 10:11

John Sonmez


I was not able to get the text field to show up under additional .plist page.
My Fix:

  1. Leave only 1 Child.plist file outside Settings.bundle
  2. Navigate to Root.plist
  3. Right click and select 'Show Ray Keys/Values'
  4. Right click and select 'Add Row'. Add:
    1. Key: File
    2. Type: String
    3. Value: Root
like image 3
cranek Avatar answered Nov 19 '22 10:11

cranek