Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Delegate should use application: didFinishLaunchingWithOptions:
Browse files Browse the repository at this point in the history
Vittorio G.  to Sam

would it be possible to update the application delegate in
SDL_uikitappdelagate to the suggest new method
  • Loading branch information
slouken committed Mar 15, 2011
1 parent 90bf3eb commit 6e18d32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/video/uikit/SDL_uikitappdelegate.m
Expand Up @@ -85,13 +85,15 @@ - (void)postFinishLaunch {
exit(exit_status);
}

- (void)applicationDidFinishLaunching:(UIApplication *)application {
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

/* Set working directory to resource path */
[[NSFileManager defaultManager] changeCurrentDirectoryPath: [[NSBundle mainBundle] resourcePath]];

[self performSelector:@selector(postFinishLaunch) withObject:nil
afterDelay:0.0];

return YES;
}

- (void)applicationWillTerminate:(UIApplication *)application {
Expand Down

0 comments on commit 6e18d32

Please sign in to comment.