project_files/HedgewarsMobile/Classes/DetailViewController.m
author koda
Mon, 02 Aug 2010 00:55:24 +0200
changeset 3703 12d17c6e8855
parent 3701 8c449776ebe6
permissions -rw-r--r--
halfway-through finishing the frontend with new graphics by Tiy + initial 'About' page set up
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
3701
8c449776ebe6 rewrite portions of some uiviewcontrollers
koda
parents: 3697
diff changeset
    18
@synthesize controllerNames, popoverController;
3547
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) viewDidLoad {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    26
    self.title = NSLocalizedString(@"Settings",@"");
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    27
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    28
    // allocate controllers and store them into the array
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    29
    NSArray *array= [[NSArray alloc] initWithObjects:NSLocalizedString(@"General",@""),
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    30
                                                     NSLocalizedString(@"Teams",@""),
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    31
                                                     NSLocalizedString(@"Weapons",@""),
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    32
                                                     NSLocalizedString(@"Schemes",@""),
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    33
                                                     nil];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    34
    self.controllerNames = array;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    35
    [array release];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    36
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    37
    // 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
    38
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    39
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    40
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(112, 112, 480, 320)];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    41
        label.text = @"Press the buttons on the left";
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    42
        label.font = [UIFont systemFontOfSize:20];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    43
        label.textAlignment = UITextAlignmentCenter;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    44
        [self.view addSubview:label];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    45
        [label release];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    46
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    47
        //[self.navigationController pushViewController:nextController animated:NO];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    48
    } else {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    49
        self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    50
                                                                                              target:self
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    51
                                                                                              action:@selector(dismissSplitView)];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    52
    }
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    53
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    54
    [super viewDidLoad];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    55
}
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
#pragma mark -
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    59
#pragma mark Table view data source
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    60
-(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView {
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    61
    // don't display
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    62
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    63
        return 0;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    64
    else
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    65
        return 1;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    66
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    67
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    68
-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    69
    return [controllerNames count];
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
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    73
    static NSString *CellIdentifier = @"Cell";
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    74
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    75
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    76
    if (cell == nil) {
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    77
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    78
                                       reuseIdentifier:CellIdentifier] autorelease];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    79
    }
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    80
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    81
    NSInteger row = [indexPath row];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    82
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    83
    cell.textLabel.text = [controllerNames objectAtIndex:row];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    84
    cell.imageView.image = [UIImage imageNamed:@"Icon.png"];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    85
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    86
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    87
    return cell;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    88
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    89
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    90
#pragma mark -
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    91
#pragma mark Table view delegate
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    92
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    93
    NSInteger row = [indexPath row];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    94
    UIViewController *nextController = nil;
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    95
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    96
    switch (row) {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    97
        case 0:
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    98
            if (nil == generalSettingsViewController)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    99
                generalSettingsViewController = [[GeneralSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   100
            nextController = generalSettingsViewController;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   101
            break;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   102
        case 1:
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   103
            if (nil == teamSettingsViewController)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   104
                teamSettingsViewController = [[TeamSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   105
            nextController = teamSettingsViewController;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   106
            break;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   107
        case 2:
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   108
            if (nil == weaponSettingsViewController)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   109
                weaponSettingsViewController = [[WeaponSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   110
            nextController = weaponSettingsViewController;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   111
            break;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   112
        case 3:
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   113
            if (nil == schemeSettingsViewController)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   114
                schemeSettingsViewController = [[SchemeSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   115
            nextController = schemeSettingsViewController;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   116
            break;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   117
    }
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
   118
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   119
    nextController.title = [controllerNames objectAtIndex:row];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   120
    [self.navigationController pushViewController:nextController animated:YES];
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
-(IBAction) dismissSplitView {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   124
    [[NSNotificationCenter defaultCenter] postNotificationName:@"dismissModalView" object:nil];
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
#pragma mark -
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   128
#pragma mark splitview support
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   129
-(void) splitViewController:(UISplitViewController *)svc popoverController:(UIPopoverController *)pc willPresentViewController:(UIViewController *)aViewController {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   130
    if (popoverController != nil) {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   131
        [popoverController dismissPopoverAnimated:YES];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   132
    }
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   133
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   134
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   135
// Called when the master view controller is about to be hidden
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
   136
-(void) splitViewController: (UISplitViewController*)svc willHideViewController:(UIViewController *)aViewController
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   137
            withBarButtonItem:(UIBarButtonItem*)barButtonItem forPopoverController: (UIPopoverController*)pc {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   138
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   139
  /*  barButtonItem.title = @"Master View";
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   140
    UIToolbar *toolbar = self.parentViewController.navigationController.toolbar;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   141
    NSMutableArray *items = [[toolbar items] mutableCopy];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   142
    [items insertObject:barButtonItem atIndex:0];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   143
    [toolbar setItems:items animated:YES];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   144
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   145
    [items release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   146
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   147
    self.popoverController = pc;*/
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   148
    barButtonItem.title = aViewController.title;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   149
    self.navigationItem.rightBarButtonItem = barButtonItem;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   150
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   151
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   152
// Called when the master view controller is about to appear
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
   153
-(void) splitViewController: (UISplitViewController*)svc  willShowViewController:(UIViewController *)aViewController
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   154
            invalidatingBarButtonItem:(UIBarButtonItem *)barButtonItem {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   155
    /*UIToolbar *toolbar = self.parentViewController.navigationController.toolbar;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   156
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   157
    NSMutableArray *items = [[toolbar items] mutableCopy];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   158
    [items removeObjectAtIndex:0];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   159
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   160
    [toolbar setItems:items animated:YES];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   161
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   162
    [items release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   163
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   164
    self.popoverController = nil;*/
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   165
        self.navigationItem.rightBarButtonItem = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   166
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   167
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   168
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   169
-(void) didReceiveMemoryWarning {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   170
    // Releases the view if it doesn't have a superview.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   171
    [super didReceiveMemoryWarning];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   172
    // Release any cached data, images, etc that aren't in use.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   173
    if (generalSettingsViewController.view.superview == nil)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   174
        generalSettingsViewController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   175
    if (teamSettingsViewController.view.superview == nil)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   176
        teamSettingsViewController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   177
    if (weaponSettingsViewController.view.superview == nil)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   178
        weaponSettingsViewController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   179
    if (schemeSettingsViewController.view.superview == nil)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   180
        schemeSettingsViewController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   181
    MSG_MEMCLEAN();
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   182
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   183
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   184
-(void) viewDidUnload {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   185
    self.controllerNames = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   186
    generalSettingsViewController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   187
    teamSettingsViewController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   188
    weaponSettingsViewController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   189
    schemeSettingsViewController = nil;
3662
a44406f4369b polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents: 3547
diff changeset
   190
    MSG_DIDUNLOAD();
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   191
    [super viewDidUnload];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   192
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   193
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   194
-(void) dealloc {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   195
    [controllerNames release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   196
    [generalSettingsViewController release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   197
    [teamSettingsViewController release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   198
    [weaponSettingsViewController release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   199
    [schemeSettingsViewController release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   200
    [super dealloc];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   201
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   202
@end