summaryrefslogtreecommitdiff
path: root/src/video/cocoa/SDL_cocoaevents.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/video/cocoa/SDL_cocoaevents.m')
-rw-r--r--src/video/cocoa/SDL_cocoaevents.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video/cocoa/SDL_cocoaevents.m b/src/video/cocoa/SDL_cocoaevents.m
index 321ea76a..8098f546 100644
--- a/src/video/cocoa/SDL_cocoaevents.m
+++ b/src/video/cocoa/SDL_cocoaevents.m
@@ -51,6 +51,11 @@
SDL_SendQuit();
return NSTerminateCancel;
}
+
+- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename
+{
+ return (BOOL)SDL_SendDropFile([filename UTF8String]);
+}
@end
static NSString *