The main window has a simple button action to present a basic modal alert with a text string.
the code to do this in swift is:
@IBAction func btnShowAlert(sender: AnyObject)
{
var myAlert:NSAlert = NSAlert()
myAlert.messageText = "Alert Text Here."
myAlert.runModal()
}
beginSheetModalForWindow()
Happy Coding;)
No comments:
Post a Comment