project_files/HedgewarsMobile/Classes/DetailViewController.m
author koda
Thu, 15 Jul 2010 01:18:51 +0200
changeset 3642 fb39fecca350
parent 3547 02875b1145b7
child 3662 a44406f4369b
permissions -rw-r--r--
support for static map added to iFrontend
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     1
    //
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     2
//  DetailViewController.m
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     3
//  HedgewarsMobile
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     4
//
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     5
//  Created by Vittorio on 27/03/10.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     7
//
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     8
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     9
#import "DetailViewController.h"
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    10
#import "SDL_uikitappdelegate.h"
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    11
#import "GeneralSettingsViewController.h"
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    12
#import "TeamSettingsViewController.h"
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    13
#import "WeaponSettingsViewController.h"
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    14
#import "SchemeSettingsViewController.h"
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    15
#import "CommodityFunctions.h"
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    16
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    17
@implementation DetailViewController
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    18
@synthesize controllerNames,popoverController;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    19
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    20
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    21
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    22
    return rotationManager(interfaceOrientation);
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    23
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    24
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    25
-(void) willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration{
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    26
    self.view.frame = CGRectMake(0, 0, 1024, 1024);
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    27
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    28
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    29
-(void) viewDidLoad {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    30
    self.title = NSLocalizedString(@"Settings",@"");
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    31
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    32
    // allocate controllers and store them into the array
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    33
    NSArray *array= [[NSArray alloc] initWithObjects:NSLocalizedString(@"General",@""), 
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    34
                                                     NSLocalizedString(@"Teams",@""),
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    35
                                                     NSLocalizedString(@"Weapons",@""),
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    36
                                                     NSLocalizedString(@"Schemes",@""),
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    37
                                                     nil];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    38
    self.controllerNames = array;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    39
    [array release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    40
    
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    41
    // on ipad make the general setting the first view, on iphone add the "Done" button on top left
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    42
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    43
        
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    44
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(112, 112, 480, 320)];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    45
        label.text = @"Press the buttons on the left";
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    46
        label.font = [UIFont systemFontOfSize:20];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    47
        label.textAlignment = UITextAlignmentCenter;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    48
        [self.view addSubview:label];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    49
        [label release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    50
        
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    51
        //[self.navigationController pushViewController:nextController animated:NO];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    52
    } else {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    53
        self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    54
                                                                                              target:self
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    55
                                                                                              action:@selector(dismissSplitView)];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    56
    }
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    57
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    58
    [super viewDidLoad];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    59
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    60
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    61
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    62
#pragma mark -
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    63
#pragma mark Table view data source
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    64
-(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    65
    // don't display 
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    66
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    67
        return 0;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    68
    else
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    69
        return 1;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    70
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    71
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    72
-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    73
    return [controllerNames count];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    74
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    75
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    76
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    77
    static NSString *CellIdentifier = @"Cell";
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    78
    
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    79
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    80
    if (cell == nil) {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    81
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault 
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    82
                                       reuseIdentifier:CellIdentifier] autorelease];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    83
    }
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    84
    
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    85
    NSInteger row = [indexPath row];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    86
    
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    87
    cell.textLabel.text = [controllerNames objectAtIndex:row];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    88
    cell.imageView.image = [UIImage imageNamed:@"Icon.png"];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    89
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    90
    
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    91
    return cell;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    92
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    93
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    94
#pragma mark -
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    95
#pragma mark Table view delegate
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    96
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    97
    NSInteger row = [indexPath row];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    98
    UIViewController *nextController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    99
    
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   100
    switch (row) {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   101
        case 0:
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   102
            if (nil == generalSettingsViewController)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   103
                generalSettingsViewController = [[GeneralSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   104
            nextController = generalSettingsViewController;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   105
            break;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   106
        case 1:
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   107
            if (nil == teamSettingsViewController)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   108
                teamSettingsViewController = [[TeamSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   109
            nextController = teamSettingsViewController;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   110
            break;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   111
        case 2:
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   112
            if (nil == weaponSettingsViewController)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   113
                weaponSettingsViewController = [[WeaponSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   114
            nextController = weaponSettingsViewController;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   115
            break;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   116
        case 3:
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   117
            if (nil == schemeSettingsViewController)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   118
                schemeSettingsViewController = [[SchemeSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   119
            nextController = schemeSettingsViewController;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   120
            break;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   121
    }
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   122
    
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   123
    nextController.title = [controllerNames objectAtIndex:row];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   124
    [self.navigationController pushViewController:nextController animated:YES];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   125
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   126
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   127
-(IBAction) dismissSplitView {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   128
    [[NSNotificationCenter defaultCenter] postNotificationName:@"dismissModalView" object:nil];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   129
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   130
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   131
#pragma mark -
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   132
#pragma mark splitview support
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   133
-(void) splitViewController:(UISplitViewController *)svc popoverController:(UIPopoverController *)pc willPresentViewController:(UIViewController *)aViewController {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   134
    if (popoverController != nil) {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   135
        [popoverController dismissPopoverAnimated:YES];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   136
    }
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   137
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   138
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   139
// Called when the master view controller is about to be hidden
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   140
-(void) splitViewController: (UISplitViewController*)svc willHideViewController:(UIViewController *)aViewController 
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   141
            withBarButtonItem:(UIBarButtonItem*)barButtonItem forPopoverController: (UIPopoverController*)pc {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   142
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   143
  /*  barButtonItem.title = @"Master View";
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   144
    UIToolbar *toolbar = self.parentViewController.navigationController.toolbar;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   145
    NSMutableArray *items = [[toolbar items] mutableCopy];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   146
    [items insertObject:barButtonItem atIndex:0];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   147
    [toolbar setItems:items animated:YES];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   148
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   149
    [items release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   150
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   151
    self.popoverController = pc;*/
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   152
    barButtonItem.title = aViewController.title;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   153
    self.navigationItem.rightBarButtonItem = barButtonItem;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   154
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   155
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   156
// Called when the master view controller is about to appear
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   157
-(void) splitViewController: (UISplitViewController*)svc  willShowViewController:(UIViewController *)aViewController 
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   158
            invalidatingBarButtonItem:(UIBarButtonItem *)barButtonItem {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   159
    /*UIToolbar *toolbar = self.parentViewController.navigationController.toolbar;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   160
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   161
    NSMutableArray *items = [[toolbar items] mutableCopy];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   162
    [items removeObjectAtIndex:0];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   163
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   164
    [toolbar setItems:items animated:YES];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   165
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   166
    [items release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   167
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   168
    self.popoverController = nil;*/
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   169
        self.navigationItem.rightBarButtonItem = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   170
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   171
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   172
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   173
-(void) didReceiveMemoryWarning {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   174
    // Releases the view if it doesn't have a superview.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   175
    [super didReceiveMemoryWarning];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   176
    // Release any cached data, images, etc that aren't in use.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   177
    if (generalSettingsViewController.view.superview == nil)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   178
        generalSettingsViewController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   179
    if (teamSettingsViewController.view.superview == nil)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   180
        teamSettingsViewController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   181
    if (weaponSettingsViewController.view.superview == nil)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   182
        weaponSettingsViewController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   183
    if (schemeSettingsViewController.view.superview == nil)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   184
        schemeSettingsViewController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   185
    MSG_MEMCLEAN();
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   186
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   187
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   188
-(void) viewDidUnload {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   189
    self.controllerNames = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   190
    generalSettingsViewController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   191
    teamSettingsViewController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   192
    weaponSettingsViewController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   193
    schemeSettingsViewController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   194
    [super viewDidUnload];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   195
    MSG_DIDUNLOAD();
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   196
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   197
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   198
-(void) dealloc {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   199
    [controllerNames release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   200
    [generalSettingsViewController release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   201
    [teamSettingsViewController release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   202
    [weaponSettingsViewController release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   203
    [schemeSettingsViewController release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   204
    [super dealloc];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   205
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   206
@end