在 NSTabView 上加载同一 NSViewController 的不同实例
我有一个 NSTabView,我在其选项卡上分配并加载相同的 NSViewController:
IRCView *viewirc = [[IRCView alloc] initWithNibName:@"IRCView" bundle:nil];
for (id view in [tabsView tabViewItems]) {
[view setView:[viewirc view]];
}
如何在每个 NSTabView
选项卡上加载 IRCView
视图控制器的不同“实例”?因此每个选项卡可以有到 IRC 服务器的不同连接(在本例中)
I have a NSTabView, where I alloc and load the same NSViewController on its tabs:
IRCView *viewirc = [[IRCView alloc] initWithNibName:@"IRCView" bundle:nil];
for (id view in [tabsView tabViewItems]) {
[view setView:[viewirc view]];
}
How could I load different 'instances' of IRCView
view controller on each of the NSTabView
tabs? So each tab can have a different connection to the IRC server (in this example)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)