1 #import <Foundation/NSString.h>
2 #import <AppKit/NSAlert.h>
3 #include "cocoaerrordialog.h"
5 void run_alert(const char *type, const char *what)
7 NSString *message = [[[NSString stringWithUTF8String:type] stringByAppendingString:@": "]
8 stringByAppendingString:[NSString stringWithUTF8String:what]];
9 NSAlert *alert = [NSAlert alertWithMessageText:@"Uncaught exception"
10 defaultButton:nil alternateButton:nil otherButton:nil
11 informativeTextWithFormat:@"%@", message];