How can I programmatically close a window in xamarin.mac ? I have opened a second window from the first window using:
var storyboard = NSStoryboard.FromName ("Second", null); var controller = storyboard.InstantiateControllerWithIdentifier ("SecondWindow") as NSWindowController; controller.ShowWindow(this);
I need to close the first window programmatically. How can I do that?