cocoaTouch/SDLOverrides/SDL_uikitappdelegate.m
changeset 3122 e005359efc59
parent 3116 97dc65a47b15
child 3199 1a9938a27677
equal deleted inserted replaced
3121:77cfee30b952 3122:e005359efc59
    50 	// the delegate is set in UIApplicationMain(), which is guaranteed to be called before this method
    50 	// the delegate is set in UIApplicationMain(), which is guaranteed to be called before this method
    51 	return (SDLUIKitDelegate *)[[UIApplication sharedApplication] delegate];
    51 	return (SDLUIKitDelegate *)[[UIApplication sharedApplication] delegate];
    52 }
    52 }
    53 
    53 
    54 -(id) init {
    54 -(id) init {
    55 	self = [super init];
    55 	if (self = [super init]){
    56 	self.uiwindow = nil;
    56         self.uiwindow = nil;
    57 	self.window = NULL;
    57         self.window = NULL;
    58 	self.viewController = nil;
    58         self.viewController = nil;
    59     self.overlayController = nil;
    59         self.overlayController = nil;
    60     isInGame = NO;
    60         isInGame = NO;
    61 	return self;
    61         return self;
       
    62     } else 
       
    63         return nil;
    62 }
    64 }
    63 
    65 
    64 -(void) dealloc {
    66 -(void) dealloc {
    65 	[uiwindow release];
    67 	[uiwindow release];
    66 	[super dealloc];
    68 	[super dealloc];