revision 686:afd1bd3f1acc
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 686:afd1bd3f1acc |
parent | 685:fa1589b42be7 |
child | 687:6bdc2b7032ea |
author | nkeynes |
date | Sat Jun 14 10:19:35 2008 +0000 (15 years ago) |
Add an application icon (ie the existing dcemu.gif)
1.1 --- a/src/cocoaui/cocoaui.c Tue Jun 03 11:16:51 2008 +00001.2 +++ b/src/cocoaui/cocoaui.c Sat Jun 14 10:19:35 2008 +00001.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];
.