什么我不能将子窗格plist文件添加到我的项目的Settings

什么我不能将子窗格plist文件添加到我的项目的Settings

本文介绍了为什么我不能将子窗格plist文件添加到我的项目的Settings.bundle中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Xcode 4.1,我一直在关注应用程序设置的教程。一切都很好,直到我准备为我要添加的子窗格添加一个plist。

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.

我正在观看的视频教程(也使用Xcode 4.1)显示该人右键单击settings.bundle并选择Add File ...然后保存名为More的文件。在视频教程中,他最终得到了一个More.plist,它出现在项目中,也出现在与Root.plist相同级别的settings.bundle中。我只是在项目中得到它。 settings.bundle中没有任何内容,我无法弄清楚如何在那里复制它。

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.

我也注意到在教程中,在Project Navigator中, settings.bundle有一个看起来有点像盾牌轮廓的图标。在我的Project Navigator中,settings.bundle看起来像一张白纸,折角向下。

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,根应用程序设置在模拟器中正常工作。我可以看到我设置的东西很好。我可以点击指向我的子窗格的链接,然后切换到它,但是我在more.plist中添加的内容都没有显示在那里。

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!!

推荐答案

Argh,Apple倾向于改变事物而不让任何人知道。如果你问我,整个设置捆绑的东西就没有很好地集成到XCode中。
如果您尝试本地化您的应用程序,您会发现必须手动将本地化文件夹添加到settings.bundle。

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.

看起来我们有现在添加子菜单做同样的事情,因为只是添加plist文件不会将它放入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. 打开查找器,你可以右键单击或用两根手指点击Settings.bundle并选择在Finder中显示。 / li>
  2. 右键单击finder窗口中的Settings.bundle,选择显示包内容。

  3. 将新的plist文件复制到此旁边的settings.bundle Root.plist

  4. 从主项目中删除新的plist。

这篇关于为什么我不能将子窗格plist文件添加到我的项目的Settings.bundle中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 19:31