我想在 IB 中设计一个带有 WebView 的 NSwindow 来显示弹出链接。我需要能够实例化任意数量的这些。这可能吗?
问问题
63 次
1 回答
3
当然。通常,您的窗口控制器将继承 NSWindowController。
MyWindowController* controller = [[MyWindowController alloc] initWithWindowNibName:@"MyWindowView"];
[controller showWindow];
在您的笔尖中,将所有者设置为 MyWindowController,然后根据需要连接您的插座。
于 2009-10-04T02:31:24.600 回答