Search
lxdream.org :: lxdream/src/cocoaui/cocoaui.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoaui.c
changeset 686:afd1bd3f1acc
prev685:fa1589b42be7
next691:ad3356543392
author nkeynes
date Sat Jun 14 10:19:35 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Add an application icon (ie the existing dcemu.gif)
file annotate diff log raw
1.1 --- a/src/cocoaui/cocoaui.c Tue Jun 03 11:16:51 2008 +0000
1.2 +++ b/src/cocoaui/cocoaui.c Sat Jun 14 10:19:35 2008 +0000
1.3 @@ -217,6 +217,9 @@
1.4 [NSApplication sharedApplication];
1.5 LxdreamDelegate *delegate = [[LxdreamDelegate alloc] init];
1.6 [NSApp setDelegate: delegate];
1.7 + NSString *iconFile = [[NSBundle mainBundle] pathForResource:@"dcemu" ofType:@"gif"];
1.8 + NSImage *iconImage = [[NSImage alloc] initWithContentsOfFile: iconFile];
1.9 + [NSApp setApplicationIconImage: iconImage];
1.10 cocoa_gui_create_menu();
1.11 NSWindow *window = cocoa_gui_create_main_window();
1.12 [window makeKeyAndOrderFront: nil];
.