Thursday, January 14, 2016

Objective-C: Dialog box

Initialization:
NSAlert *alert = [[NSAlert alloc] init];

[alert addButtonWithTitle:@"A"];

[alert addButtonWithTitle:@"B"];

[alert setMessageText:@"Message text"];

[alert setInformativeText:@"Informative text"];

[alert setAlertStyle:NSWarningAlertStyle];