Hello,
I am trying to create multiple instances of an NSWindow without the use of NSDocument and NSDocumentController. For my purpose, it is overkill. I am using NSWindowController, instead. Here is the code that creates an instance of my NSWindow once, a button is clicked.
When the button is clicked again, no new instances appear.
The window's nib is connect to the controller via File's Owner. (I just used the standard Xcode 4 new Window Controller template.) Is it possible, though, to make multiple instances of that same window appear when the button is clicked without the use of NSDocument or NSDocumentController. The NSWindowController's documentation is very limited in what it says.
Thanks!
I am trying to create multiple instances of an NSWindow without the use of NSDocument and NSDocumentController. For my purpose, it is overkill. I am using NSWindowController, instead. Here is the code that creates an instance of my NSWindow once, a button is clicked.
Code:
newFileWindowController = [[NewFileWindowController alloc] initWithWindowNibName:@"NewFileWindowController"];
[newFileWindowController showWindow:nil];
When the button is clicked again, no new instances appear.
The window's nib is connect to the controller via File's Owner. (I just used the standard Xcode 4 new Window Controller template.) Is it possible, though, to make multiple instances of that same window appear when the button is clicked without the use of NSDocument or NSDocumentController. The NSWindowController's documentation is very limited in what it says.
Thanks!