Close Main(First) Window

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;

I need to close the first window programmatically. How can I do that?

Best Answer


Sign In or Register to comment.