Thursday, 24 January 2013

Auto close application after main form closes

Your Xamarin.Mac Cocoa application would not terminate after you close the main form. Automatically terminating application when the last form is closed is some thing that C# developers in Windows used to it. In Cocoa application, in order to have the same functionality, you need to override a method in AppDelegate.cs: