cocoaTouch/iPad/MainMenuViewController.m
changeset 3250 d5cd1a617123
parent 3165 3ec07a7d8456
child 3251 221c163ad5d9
equal deleted inserted replaced
3249:74a506c9d71b 3250:d5cd1a617123
    28 	// Releases the view if it doesn't have a superview.
    28 	// Releases the view if it doesn't have a superview.
    29 	[super didReceiveMemoryWarning];
    29 	[super didReceiveMemoryWarning];
    30 }
    30 }
    31 
    31 
    32 - (void)dealloc {
    32 - (void)dealloc {
       
    33     [cover release];
    33 	[super dealloc];
    34 	[super dealloc];
       
    35 }
       
    36 
       
    37 -(void) viewDidUnload {
       
    38     self.cover = nil;
       
    39 	[super viewDidUnload];
    34 }
    40 }
    35 
    41 
    36 -(void) viewDidLoad {
    42 -(void) viewDidLoad {
    37     // initialize some files the first time we load the game
    43     // initialize some files the first time we load the game
    38 	[NSThread detachNewThreadSelector:@selector(checkFirstRun) toTarget:self withObject:nil];
    44 	[NSThread detachNewThreadSelector:@selector(checkFirstRun) toTarget:self withObject:nil];
    39     // listet to request to remove the modalviewcontroller
    45     // listen to request to remove the modalviewcontroller
    40     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(dismissModalViewController) name: @"dismissModalView" object:nil];
    46     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(dismissModalViewController) name: @"dismissModalView" object:nil];
    41 
    47 
    42 	[super viewDidLoad];
    48 	[super viewDidLoad];
    43 }
    49 }
    44 
    50