filename | src/cocoaui/cocoaui.c |
changeset | 797:3bb52a384b64 |
prev | 785:00235838aaec |
next | 837:4eae2ddccf9c |
author | nkeynes |
date | Thu Aug 07 23:32:34 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Unroll first iteration of the bounding loop in ta_commit_polygon - more to remove the compiler warnings than for performance really. |
file | annotate | diff | log | raw |
1.1 --- a/src/cocoaui/cocoaui.c Tue Jul 29 08:50:49 2008 +00001.2 +++ b/src/cocoaui/cocoaui.c Thu Aug 07 23:32:34 2008 +00001.3 @@ -181,6 +181,18 @@1.4 display_set_focused( FALSE );1.5 [((LxdreamMainWindow *)[NSApp mainWindow]) setIsGrabbed: NO];1.6 }1.7 +- (BOOL)application: (NSApplication *)app openFile: (NSString *)filename1.8 +{1.9 + const gchar *cname = [filename UTF8String];1.10 + if( file_load_magic(cname) ) {1.11 + // Queue up a run event1.12 + cocoa_gui_run_later();1.13 + return YES;1.14 + } else {1.15 + return NO;1.16 + }1.17 +1.18 +}1.19 - (void) about_action: (id)sender1.20 {1.21 NSArray *keys = [NSArray arrayWithObjects: @"Version", @"Copyright", nil];
.