cocoaTouch/GameConfigViewController.m
author nemo
Sat, 05 Jun 2010 19:00:42 +0000
changeset 3497 9327fae93244
parent 3490 016b3172b645
child 3513 f589230fa21b
permissions -rw-r--r--
Remove decrement of iterator health. Might fix weird health bug.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3356
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
     1
    //
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
     2
//  GameConfigViewController.m
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
     3
//  HedgewarsMobile
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
     4
//
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
     5
//  Created by Vittorio on 18/04/10.
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
     7
//
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
     8
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
     9
#import "GameConfigViewController.h"
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    10
#import "SDL_uikitappdelegate.h"
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    11
#import "CommodityFunctions.h"
3365
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    12
#import "MapConfigViewController.h"
3361
cfc6cd502f85 buttons for number of hogs in game config
koda
parents: 3356
diff changeset
    13
#import "TeamConfigViewController.h"
3356
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    14
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    15
@implementation GameConfigViewController
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    16
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    17
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    18
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    19
    return rotationManager(interfaceOrientation);
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    20
}
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    21
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    22
-(IBAction) buttonPressed:(id) sender {
3361
cfc6cd502f85 buttons for number of hogs in game config
koda
parents: 3356
diff changeset
    23
    // works even if it's not actually a button
3356
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    24
    UIButton *theButton = (UIButton *)sender;
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    25
    switch (theButton.tag) {
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    26
        case 0:
3365
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    27
            [[self parentViewController] dismissModalViewControllerAnimated:YES];
3356
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    28
            break;
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    29
        case 1:
3364
e5403e2bf02c no more hardcoded teams, team selection is real \o/
koda
parents: 3361
diff changeset
    30
            [self performSelector:@selector(startGame)
3356
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    31
                       withObject:nil
3364
e5403e2bf02c no more hardcoded teams, team selection is real \o/
koda
parents: 3361
diff changeset
    32
                       afterDelay:0.25];
3356
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    33
            break;
3365
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    34
3356
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    35
    }
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    36
}
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
    37
3365
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    38
-(IBAction) segmentPressed:(id) sender {
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    39
    UISegmentedControl *theSegment = (UISegmentedControl *)sender;
3369
c7289e42f0ee add other controls for map preview, also fix a bug in digest
koda
parents: 3365
diff changeset
    40
3365
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    41
    switch (theSegment.selectedSegmentIndex) {
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    42
        case 0:
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    43
            // this init here is just aestetic as this controller was already set up in viewDidLoad
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    44
            if (mapConfigViewController == nil) {
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    45
                mapConfigViewController = [[MapConfigViewController alloc] initWithNibName:@"MapConfigViewController-iPhone" bundle:nil];
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    46
                [mapConfigViewController viewWillAppear:NO];  
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    47
            }
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    48
            activeController = mapConfigViewController;
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    49
            break;
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    50
        case 1:
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    51
            if (teamConfigViewController == nil) {
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    52
                teamConfigViewController = [[TeamConfigViewController alloc] initWithStyle:UITableViewStyleGrouped];
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    53
                // this message is compulsory otherwise the team table won't be loaded at all
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    54
                [teamConfigViewController viewWillAppear:NO];  
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    55
            }
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    56
            activeController = teamConfigViewController;
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    57
            break;
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    58
        case 2:
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    59
            
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    60
            break;
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    61
    }
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    62
    
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    63
    [self.view addSubview:activeController.view];
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    64
}
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    65
3364
e5403e2bf02c no more hardcoded teams, team selection is real \o/
koda
parents: 3361
diff changeset
    66
-(void) startGame {
3490
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
    67
    // don't start playing if the preview is in progress
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
    68
    if ([mapConfigViewController busy]) {
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
    69
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Wait for the Preview",@"")
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
    70
                                                        message:NSLocalizedString(@"Before playing the preview needs to be generated",@"")
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
    71
                                                       delegate:nil
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
    72
                                              cancelButtonTitle:NSLocalizedString(@"Ok, got it",@"")
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
    73
                                              otherButtonTitles:nil];
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
    74
        [alert show];
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
    75
        [alert release];
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
    76
        return;
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
    77
    }
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
    78
    
3365
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    79
    // play only if there is more than one team
3364
e5403e2bf02c no more hardcoded teams, team selection is real \o/
koda
parents: 3361
diff changeset
    80
    if ([teamConfigViewController.listOfSelectedTeams count] < 2) {
e5403e2bf02c no more hardcoded teams, team selection is real \o/
koda
parents: 3361
diff changeset
    81
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Too few teams playing",@"")
3365
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    82
                                                        message:NSLocalizedString(@"You need to select at least two teams to play a game",@"")
3364
e5403e2bf02c no more hardcoded teams, team selection is real \o/
koda
parents: 3361
diff changeset
    83
                                                       delegate:nil
e5403e2bf02c no more hardcoded teams, team selection is real \o/
koda
parents: 3361
diff changeset
    84
                                              cancelButtonTitle:NSLocalizedString(@"Ok, got it",@"")
e5403e2bf02c no more hardcoded teams, team selection is real \o/
koda
parents: 3361
diff changeset
    85
                                              otherButtonTitles:nil];
e5403e2bf02c no more hardcoded teams, team selection is real \o/
koda
parents: 3361
diff changeset
    86
        [alert show];
e5403e2bf02c no more hardcoded teams, team selection is real \o/
koda
parents: 3361
diff changeset
    87
        [alert release];
3365
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    88
        return;
3364
e5403e2bf02c no more hardcoded teams, team selection is real \o/
koda
parents: 3361
diff changeset
    89
    }
3365
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    90
    
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    91
    // play if there's room for enough hogs in the selected map
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    92
    int hogs = 0;
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    93
    for (NSDictionary *teamData in teamConfigViewController.listOfSelectedTeams)
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    94
        hogs += [[teamData objectForKey:@"number"] intValue];
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    95
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    96
    if (hogs > mapConfigViewController.maxHogs) {
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    97
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Too many hogs",@"")
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    98
                                                        message:NSLocalizedString(@"The map you selected is too small for that many hogs",@"")
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
    99
                                                       delegate:nil
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   100
                                              cancelButtonTitle:NSLocalizedString(@"Ok, got it",@"")
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   101
                                              otherButtonTitles:nil];
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   102
        [alert show];
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   103
        [alert release];
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   104
        return;
3369
c7289e42f0ee add other controls for map preview, also fix a bug in digest
koda
parents: 3365
diff changeset
   105
    }
3490
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
   106
    
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
   107
    // create the configuration file that is going to be sent to engine
3365
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   108
    NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys:mapConfigViewController.seedCommand,@"seed_command",
3369
c7289e42f0ee add other controls for map preview, also fix a bug in digest
koda
parents: 3365
diff changeset
   109
                                                                      mapConfigViewController.templateFilterCommand,@"templatefilter_command",
c7289e42f0ee add other controls for map preview, also fix a bug in digest
koda
parents: 3365
diff changeset
   110
                                                                      mapConfigViewController.mapGenCommand,@"mapgen_command",
c7289e42f0ee add other controls for map preview, also fix a bug in digest
koda
parents: 3365
diff changeset
   111
                                                                      mapConfigViewController.mazeSizeCommand,@"mazesize_command",
3373
c1ff724a5c34 use a proper bundle identifier
koda
parents: 3369
diff changeset
   112
                                                                      mapConfigViewController.themeCommand,@"theme_command",
3365
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   113
                                                                      teamConfigViewController.listOfSelectedTeams,@"teams_list",nil];
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   114
    [dict writeToFile:GAMECONFIG_FILE() atomically:YES];
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   115
    [dict release];
3490
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
   116
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
   117
    // finally launch game and remove this controller
3365
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   118
    [[self parentViewController] dismissModalViewControllerAnimated:YES];
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   119
    [[SDLUIKitDelegate sharedAppDelegate] startSDLgame];
3356
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   120
}
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   121
3361
cfc6cd502f85 buttons for number of hogs in game config
koda
parents: 3356
diff changeset
   122
-(void) viewDidLoad {
3374
0d522416d97f lazy loading for all the tables with images (might affect performance but ui feels much more responsive)
koda
parents: 3373
diff changeset
   123
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
0d522416d97f lazy loading for all the tables with images (might affect performance but ui feels much more responsive)
koda
parents: 3373
diff changeset
   124
        mapConfigViewController = [[MapConfigViewController alloc] initWithNibName:@"MapConfigViewController-iPad" bundle:nil];
0d522416d97f lazy loading for all the tables with images (might affect performance but ui feels much more responsive)
koda
parents: 3373
diff changeset
   125
        teamConfigViewController = [[TeamConfigViewController alloc] initWithStyle:UITableViewStylePlain];
0d522416d97f lazy loading for all the tables with images (might affect performance but ui feels much more responsive)
koda
parents: 3373
diff changeset
   126
        teamConfigViewController.view.frame = CGRectMake(0, 224, 300, 500);
0d522416d97f lazy loading for all the tables with images (might affect performance but ui feels much more responsive)
koda
parents: 3373
diff changeset
   127
        teamConfigViewController.view.backgroundColor = [UIColor clearColor];
0d522416d97f lazy loading for all the tables with images (might affect performance but ui feels much more responsive)
koda
parents: 3373
diff changeset
   128
        [mapConfigViewController.view addSubview:teamConfigViewController.view];
0d522416d97f lazy loading for all the tables with images (might affect performance but ui feels much more responsive)
koda
parents: 3373
diff changeset
   129
    } else
0d522416d97f lazy loading for all the tables with images (might affect performance but ui feels much more responsive)
koda
parents: 3373
diff changeset
   130
        mapConfigViewController = [[MapConfigViewController alloc] initWithNibName:@"MapConfigViewController-iPhone" bundle:nil];
3365
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   131
    activeController = mapConfigViewController;
3361
cfc6cd502f85 buttons for number of hogs in game config
koda
parents: 3356
diff changeset
   132
    
3369
c7289e42f0ee add other controls for map preview, also fix a bug in digest
koda
parents: 3365
diff changeset
   133
    [self.view addSubview:mapConfigViewController.view];
3361
cfc6cd502f85 buttons for number of hogs in game config
koda
parents: 3356
diff changeset
   134
    
3356
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   135
    [super viewDidLoad];
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   136
}
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   137
3365
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   138
-(void) viewWillAppear:(BOOL)animated {
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   139
    [mapConfigViewController viewWillAppear:animated];
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   140
    [teamConfigViewController viewWillAppear:animated];
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   141
    // ADD other controllers here
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   142
     
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   143
    [super viewWillAppear:animated];
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   144
}
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   145
3373
c1ff724a5c34 use a proper bundle identifier
koda
parents: 3369
diff changeset
   146
-(void) viewDidAppear:(BOOL)animated {
c1ff724a5c34 use a proper bundle identifier
koda
parents: 3369
diff changeset
   147
    [mapConfigViewController viewDidAppear:animated];
c1ff724a5c34 use a proper bundle identifier
koda
parents: 3369
diff changeset
   148
    [teamConfigViewController viewDidAppear:animated];
c1ff724a5c34 use a proper bundle identifier
koda
parents: 3369
diff changeset
   149
    [super viewDidAppear:animated];
c1ff724a5c34 use a proper bundle identifier
koda
parents: 3369
diff changeset
   150
}
c1ff724a5c34 use a proper bundle identifier
koda
parents: 3369
diff changeset
   151
3356
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   152
-(void) didReceiveMemoryWarning {
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   153
    // Releases the view if it doesn't have a superview.
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   154
    [super didReceiveMemoryWarning];
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   155
    // Release any cached data, images, etc that aren't in use.
3490
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
   156
    if (mapConfigViewController.view.superview == nil) 
3487
b1d00f1950c8 add some memory aware code
koda
parents: 3374
diff changeset
   157
        mapConfigViewController = nil;
b1d00f1950c8 add some memory aware code
koda
parents: 3374
diff changeset
   158
    if (teamConfigViewController.view.superview == nil)
b1d00f1950c8 add some memory aware code
koda
parents: 3374
diff changeset
   159
        teamConfigViewController = nil;
b1d00f1950c8 add some memory aware code
koda
parents: 3374
diff changeset
   160
    activeController = nil;
b1d00f1950c8 add some memory aware code
koda
parents: 3374
diff changeset
   161
    MSG_MEMCLEAN();
3356
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   162
}
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   163
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   164
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   165
-(void) viewDidUnload {
3361
cfc6cd502f85 buttons for number of hogs in game config
koda
parents: 3356
diff changeset
   166
    activeController = nil;
3365
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   167
    mapConfigViewController = nil;
3361
cfc6cd502f85 buttons for number of hogs in game config
koda
parents: 3356
diff changeset
   168
    teamConfigViewController = nil;
3356
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   169
    [super viewDidUnload];
3490
016b3172b645 a bunch of minor stuff
koda
parents: 3487
diff changeset
   170
    MSG_DIDUNLOAD();
3356
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   171
}
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   172
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   173
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   174
-(void) dealloc {
3361
cfc6cd502f85 buttons for number of hogs in game config
koda
parents: 3356
diff changeset
   175
    [activeController release];
3365
37ac593e9027 wow all these files only for land preview and seed generation
koda
parents: 3364
diff changeset
   176
    [mapConfigViewController release];
3361
cfc6cd502f85 buttons for number of hogs in game config
koda
parents: 3356
diff changeset
   177
    [teamConfigViewController release];
3356
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   178
    [super dealloc];
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   179
}
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   180
3ae3fccb439e add missing controller stubs
koda
parents:
diff changeset
   181
@end