Xcode 3.2 缺少类操作/插座?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1496219/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 3.2 Missing Class Actions / Outlets?
提问by ACBurk
Where are the Class Action and Class Outlets in Xcode 3.2? They aren't showing up in the Inspector like they used to.
Xcode 3.2 中的 Class Action 和 Class Outlets 在哪里?他们不像以前那样出现在 Inspector 中。
回答by ACBurk
Got it.
知道了。
Anyone else that was wondering, those options were moved into the Library window, under classes. If you pick the specific class, you will see the action and outlet tab on the bottom.
其他任何想知道的人,这些选项都移到了类下的库窗口中。如果您选择特定的类,您将在底部看到操作和插座选项卡。
回答by pm_labs
Below are some additional instructions based on ACBurk's answer:
以下是基于 ACBurk 回答的一些附加说明:
- Select the class you wish to inspect from MainWindow.xib (or any under XIB you're editing).
- Open Identity Inspector (Apple Key + 4).
- In the Class Identity section, click the right arrow image beside the class name.
- That should load up Library window for the selected class.
- Switch to the appropriate tab (at the bottom of the Library window) for Outlets and Actions.
- 从 MainWindow.xib(或您正在编辑的 XIB 下的任何一个)中选择您希望检查的类。
- 打开身份检查器(Apple Key + 4)。
- 在“类标识”部分中,单击类名称旁边的向右箭头图像。
- 这应该加载所选类的库窗口。
- Switch to the appropriate tab (at the bottom of the Library window) for Outlets and Actions.
回答by pm_labs
I think once you create the object in your interface, it shows up in the classes list in the Library dialog. You can then add the Outlets and Actions on the object from that window.
我认为一旦您在界面中创建了对象,它就会显示在“库”对话框的类列表中。然后,您可以从该窗口在对象上添加插座和动作。