1.1 --- a/src/cocoaui/cocoaui.m Thu Jun 10 22:13:16 2010 +1000
1.2 +++ b/src/cocoaui/cocoaui.m Wed Feb 04 08:38:23 2015 +1000
1.4 [NSApplication sharedApplication];
1.6 LxdreamDelegate *delegate = [[LxdreamDelegate alloc] init];
1.7 - [NSApp setDelegate: delegate];
1.8 + [NSApp setDelegate: (id)delegate];
1.9 NSString *iconFile = [[NSBundle mainBundle] pathForResource:@"lxdream" ofType:@"png"];
1.10 NSImage *iconImage = [[NSImage alloc] initWithContentsOfFile: iconFile];
1.11 [iconImage setName: @"NSApplicationIcon"];
1.14 va_start(args, msg);
1.15 error_string = [[NSString alloc] initWithFormat: [NSString stringWithCString: msg] arguments: args];
1.16 - NSRunAlertPanel(NS_("Error in Lxdream"), error_string, nil, nil, nil);
1.17 + NSRunAlertPanel(NS_("Error in Lxdream"), @"%@", nil, nil, nil, error_string);