cocoaTouch/SDLOverrides/SDL_uikitappdelegate.m
changeset 3335 2520ee7a5484
parent 3318 591c42242106
child 3361 cfc6cd502f85
--- a/cocoaTouch/SDLOverrides/SDL_uikitappdelegate.m	Sun Apr 11 01:04:54 2010 +0000
+++ b/cocoaTouch/SDLOverrides/SDL_uikitappdelegate.m	Sun Apr 11 03:43:13 2010 +0000
@@ -73,6 +73,7 @@
 }
 
 -(void) dealloc {
+    [viewController release];
 	[uiwindow release];
 	[super dealloc];
 }
@@ -104,13 +105,6 @@
     [viewController appear];
 }
 
-// get a path-to-file string
--(NSString *)dataFilePath:(NSString *)fileName {
-	NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
-	NSString *documentsDirectory = [paths objectAtIndex:0];
-	return [documentsDirectory stringByAppendingPathComponent:fileName];
-}
-
 // override the direct execution of SDL_main to allow us to implement the frontend (even using a nib)
 -(void) applicationDidFinishLaunching:(UIApplication *)application {
 	//[application setStatusBarHidden:YES animated:NO];
@@ -145,13 +139,13 @@
 }
 
 -(void) applicationWillResignActive:(UIApplication *)application {
-	NSLog(@"%@", NSStringFromSelector(_cmd));
+	//NSLog(@"%@", NSStringFromSelector(_cmd));
     if (isInGame) HW_pause();
 	//SDL_SendWindowEvent(self.window, SDL_WINDOWEVENT_MINIMIZED, 0, 0);
 }
 
 -(void) applicationDidBecomeActive:(UIApplication *)application {
-	NSLog(@"%@", NSStringFromSelector(_cmd));
+	//NSLog(@"%@", NSStringFromSelector(_cmd));
     if (isInGame) HW_pause();
 	//SDL_SendWindowEvent(self.window, SDL_WINDOWEVENT_RESTORED, 0, 0);
 }