Search
lxdream.org :: lxdream/src/cocoaui/cocoaui.m :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoaui.m
changeset 1298:d0eb2307b847
prev1109:700c5ab26a63
author nkeynes
date Wed Feb 04 08:38:23 2015 +1000 (5 years ago)
permissions -rw-r--r--
last change Fix assorted compile warnings reported by Clang
file annotate diff log raw
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.3 @@ -357,7 +357,7 @@
1.4 [NSApplication sharedApplication];
1.5
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.12 @@ -403,7 +403,7 @@
1.13 va_list args;
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);
1.18 va_end(args);
1.19 return TRUE;
1.20 } else {
.