src/video/uikit/SDL_uikitappdelegate.m
changeset 6587 4ef7c70295c9
parent 6557 87ba88e3f2a9
child 6885 700f1b25f77f
equal deleted inserted replaced
6586:ab57cc69dcc0 6587:4ef7c70295c9
   265         SDL_SendWindowEvent(window, SDL_WINDOWEVENT_FOCUS_GAINED, 0, 0);
   265         SDL_SendWindowEvent(window, SDL_WINDOWEVENT_FOCUS_GAINED, 0, 0);
   266         SDL_SendWindowEvent(window, SDL_WINDOWEVENT_RESTORED, 0, 0);
   266         SDL_SendWindowEvent(window, SDL_WINDOWEVENT_RESTORED, 0, 0);
   267     }
   267     }
   268 }
   268 }
   269 
   269 
       
   270 - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
       
   271 {
       
   272     NSURL *fileURL = [url filePathURL];
       
   273     if (fileURL != nil) {
       
   274         SDL_SendDropFile([[fileURL path] UTF8String]);
       
   275     } else {
       
   276         SDL_SendDropFile([[url absoluteString] UTF8String]);
       
   277     }
       
   278     return YES;
       
   279 }
       
   280 
   270 @end
   281 @end
   271 
   282 
   272 #endif /* SDL_VIDEO_DRIVER_UIKIT */
   283 #endif /* SDL_VIDEO_DRIVER_UIKIT */
   273 
   284 
   274 /* vi: set ts=4 sw=4 expandtab: */
   285 /* vi: set ts=4 sw=4 expandtab: */