mirror of https://github.com/Airr/nim-cocoa.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
474 B
15 lines
474 B
#import <Cocoa/Cocoa.h>
|
|
|
|
#include "col.h"
|
|
|
|
|
|
int createDialog(const char *title, const char *message, int type) {
|
|
NSAlert *alert = [[NSAlert new] autorelease];
|
|
[alert addButtonWithTitle:@"Continue"];
|
|
[alert addButtonWithTitle:@"Cancel"];
|
|
[alert setMessageText:[NSString stringWithUTF8String:title] ];
|
|
[alert setInformativeText:[NSString stringWithUTF8String:message] ];
|
|
[alert setAlertStyle:NSAlertStyleWarning];
|
|
return [alert runModal];
|
|
}
|
|
|
|
|