tags:

views:

41

answers:

1

I would like to design an NSwindow with a WebView in IB for displaying popup links. I need to be able to instantiate any number of these. Is this possible?

+3  A: 

Sure. Typically, your window controller would subclass NSWindowController.

MyWindowController* controller = [[MyWindowController alloc] initWithWindowNibName:@"MyWindowView"];

[controller showWindow];

In your nib, set the Owner to MyWindowController, then hook up your outlets as necessary.

Darren