void ShowDialog(NSObject sender) { // Load the new window var dialog = new CustomDialogController(); // Display the window modally NSApplication.SharedApplication.RunModalForWindow(dialog.Window); }
void ShowDialog (NSObject sender) { // Load the new window var dialog = new CustomDialogController (); // Display the window modally NSApplication.SharedApplication.RunModalForWindow (dialog.Window); }