You are looking for an NSAlert that is basically equivalent to a MessageBox.
You can show NSAlert with NSAlert.RunModal () or use NSAlert.BeginSheet () if you want it to appear as a sheet in a specific window.
eg.
var alert = new NSAlert {
MessageText = "Hello, this is an alert!",
AlertStyle = NSAlertStyle.Informational
};
alert.AddButton ("OK");
alert.AddButton ("Cancel");
var returnValue = alert.RunModal();
You can see how to use it a little more from the point of view of MonoMac here:
https://github.com/picoe/Eto/blob/master/Source/Eto.Platform.Mac/Forms/MessageBoxHandler.cs
source
share