Xcode 4 和带有 xibs 的控制器
我有一个带有 splitview 控制器的主 xib,并将 ibactions 和属性拖到 AppDelegate 代码上。
因此,在我的 applicationDidFinishLaunching 中,我想将一个使用 xib 的控制器加载到我已链接的 nsviews 之一中。
问题是我无法使用 xcode 将新 xib 中的 ibactions 和属性链接到要加载它的控制器中。
这必须以编程方式完成吗?
I have main xib with a splitview controller and ive dragged the ibactions and properties on to the AppDelegate code.
So in my applicationDidFinishLaunching i would like to load a controller which uses a xib into one of the nsviews that i have linked up.
The problem is that i can't use xcode to link ibactions and properties from the new xib into the controller that is going to load it.
Does that have to be done programatically?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定你到底想做什么。但是,听起来您所指的“splitviewcontroller”应该是 NSViewController 的子类,然后它可以为您管理 xib。
再说一次,我不确定你想做什么;也许发布一段代码?
I'm unsure of exactly what you are trying to do. However, it sounds like the 'splitview controller' you are referring to should be a subclass of
NSViewController
, then it can manage the xib for you.Again, I'm not certain what you are trying to do; perhaps post a snippet of code?