src/video/uikit/SDL_uikitappdelegate.m
changeset 6587 4ef7c70295c9
parent 6557 87ba88e3f2a9
child 6885 700f1b25f77f
     1.1 --- a/src/video/uikit/SDL_uikitappdelegate.m	Sun Oct 14 00:24:07 2012 -0700
     1.2 +++ b/src/video/uikit/SDL_uikitappdelegate.m	Sun Oct 14 01:05:04 2012 -0700
     1.3 @@ -267,6 +267,17 @@
     1.4      }
     1.5  }
     1.6  
     1.7 +- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
     1.8 +{
     1.9 +    NSURL *fileURL = [url filePathURL];
    1.10 +    if (fileURL != nil) {
    1.11 +        SDL_SendDropFile([[fileURL path] UTF8String]);
    1.12 +    } else {
    1.13 +        SDL_SendDropFile([[url absoluteString] UTF8String]);
    1.14 +    }
    1.15 +    return YES;
    1.16 +}
    1.17 +
    1.18  @end
    1.19  
    1.20  #endif /* SDL_VIDEO_DRIVER_UIKIT */