NSAlert *alert = [[NSAlert alloc] init];
[alert addButtonWithTitle:@"A"];
[alert addButtonWithTitle:@"B"];
[alert setMessageText:@"Message text"];
[alert setInformativeText:@"Informative text"];
[alert setAlertStyle:NSWarningAlertStyle];