I created a window based on NSWindowController It is called with...
view2Controller = [[View2Controller alloc] initWithWindowNibName:@"View2"];
[view2Controller showWindow:self];
That works great, and I have a functioning window.
Now I need to close it.
exit(0); // closes the entire application
close(0); // does is in the documentation, but it nothing
I found a suggestion to use..
[self dismissModalViewControllerAnimated:YES];
, but that seems to apply only to UI views, and generates an error.
How can I close the window that I have here?