cocoaTouch/TeamSettingsViewController.m
author smxx
Mon, 19 Apr 2010 13:31:08 +0000
changeset 3359 d17b9f6adae5
parent 3352 ac5d14a35482
child 3361 cfc6cd502f85
permissions -rw-r--r--
Engine: * Let gears collide once they significantly leave visible area (might need more testing) * Added skipping sound to gears skipping on water surface Frontend: * Fixed loading/saving of control bindings
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     1
//
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     2
//  TeamSettingsViewController.m
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     3
//  HedgewarsMobile
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     4
//
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     5
//  Created by Vittorio on 02/04/10.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     7
//
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     8
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     9
#import "TeamSettingsViewController.h"
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    10
#import "SingleTeamViewController.h"
3325
652a8ebdf667 moved around team creation
koda
parents: 3323
diff changeset
    11
#import "CommodityFunctions.h"
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    12
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    13
@implementation TeamSettingsViewController
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    14
@synthesize listOfTeams;
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    15
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    16
3335
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3330
diff changeset
    17
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3330
diff changeset
    18
	return rotationManager(interfaceOrientation);
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    19
}
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    20
3335
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3330
diff changeset
    21
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    22
#pragma mark -
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    23
#pragma mark View lifecycle
3330
987ec27b6042 add support for modifying the name of the team
koda
parents: 3328
diff changeset
    24
// add an edit button
987ec27b6042 add support for modifying the name of the team
koda
parents: 3328
diff changeset
    25
-(void) viewDidLoad {
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    26
    [super viewDidLoad];
3308
b6dcae4b6d2c make the tables work also on iphone
koda
parents: 3305
diff changeset
    27
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    28
    UIBarButtonItem *editButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Edit",@"from the team navigation")
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    29
                                                                   style:UIBarButtonItemStyleBordered
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    30
                                                                  target:self
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    31
                                                                  action:@selector(toggleEdit:)];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    32
    self.navigationItem.rightBarButtonItem = editButton;
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    33
    [editButton release];
3330
987ec27b6042 add support for modifying the name of the team
koda
parents: 3328
diff changeset
    34
}
987ec27b6042 add support for modifying the name of the team
koda
parents: 3328
diff changeset
    35
987ec27b6042 add support for modifying the name of the team
koda
parents: 3328
diff changeset
    36
// load the list of teams in the teams directory
987ec27b6042 add support for modifying the name of the team
koda
parents: 3328
diff changeset
    37
-(void) viewWillAppear:(BOOL)animated {
987ec27b6042 add support for modifying the name of the team
koda
parents: 3328
diff changeset
    38
    [super viewWillAppear:animated];
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    39
    
3330
987ec27b6042 add support for modifying the name of the team
koda
parents: 3328
diff changeset
    40
    NSArray *contentsOfDir = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:TEAMS_DIRECTORY() error:NULL];
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    41
    NSMutableArray *array = [[NSMutableArray alloc] initWithArray: contentsOfDir copyItems:YES];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    42
    self.listOfTeams = array;
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    43
    [array release];
3330
987ec27b6042 add support for modifying the name of the team
koda
parents: 3328
diff changeset
    44
    
987ec27b6042 add support for modifying the name of the team
koda
parents: 3328
diff changeset
    45
    [self.tableView reloadData];
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    46
    NSLog(@"files: %@", self.listOfTeams);
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    47
}
3308
b6dcae4b6d2c make the tables work also on iphone
koda
parents: 3305
diff changeset
    48
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    49
// modifies the navigation bar to add the "Add" and "Done" buttons
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    50
-(void) toggleEdit:(id) sender {
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    51
    BOOL isEditing = self.tableView.editing;
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    52
    [self.tableView setEditing:!isEditing animated:YES];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    53
    
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    54
    if (isEditing) {
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    55
        [self.navigationItem.rightBarButtonItem setTitle:NSLocalizedString(@"Edit",@"from the team navigation")];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    56
        [self.navigationItem.rightBarButtonItem setStyle: UIBarButtonItemStyleBordered];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    57
        self.navigationItem.leftBarButtonItem = self.navigationItem.backBarButtonItem;
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    58
    } else {
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    59
        [self.navigationItem.rightBarButtonItem setTitle:NSLocalizedString(@"Done",@"from the team navigation")];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    60
        [self.navigationItem.rightBarButtonItem setStyle:UIBarButtonItemStyleDone];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    61
        UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Add",@"from the team navigation")
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    62
                                                                      style:UIBarButtonItemStyleBordered
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    63
                                                                     target:self
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    64
                                                                     action:@selector(addTeam:)];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    65
        self.navigationItem.leftBarButtonItem = addButton;
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    66
        [addButton release];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    67
    }
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    68
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    69
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    70
// add a team file with default values and updates the table
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    71
-(void) addTeam:(id) sender {
3325
652a8ebdf667 moved around team creation
koda
parents: 3323
diff changeset
    72
    NSString *fileName = [[NSString alloc] initWithFormat:@"Default Team %u.plist", [self.listOfTeams count]];
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    73
    
3325
652a8ebdf667 moved around team creation
koda
parents: 3323
diff changeset
    74
    createTeamNamed([fileName stringByDeletingPathExtension]);
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    75
    
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    76
    [self.listOfTeams addObject:fileName];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    77
    [fileName release];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    78
    
3352
ac5d14a35482 complete previews on the team settings
koda
parents: 3335
diff changeset
    79
    // order the array alphabetically, so teams will keep their position
ac5d14a35482 complete previews on the team settings
koda
parents: 3335
diff changeset
    80
    [self.listOfTeams sortUsingSelector:@selector(compare:)];
ac5d14a35482 complete previews on the team settings
koda
parents: 3335
diff changeset
    81
    
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    82
    [self.tableView reloadData];
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    83
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    84
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    85
#pragma mark -
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    86
#pragma mark Table view data source
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    87
-(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView {
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    88
    return 1;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    89
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    90
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    91
-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    92
    return [listOfTeams count];
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    93
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    94
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    95
// Customize the appearance of table view cells.
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
    96
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    97
    static NSString *CellIdentifier = @"Cell";
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    98
    
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    99
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   100
    if (cell == nil) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   101
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   102
    }
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   103
    
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   104
    NSUInteger row = [indexPath row]; 
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   105
    NSString *rowString = [[listOfTeams objectAtIndex:row] stringByDeletingPathExtension]; 
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   106
    cell.textLabel.text = rowString; 
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   107
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   108
    
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   109
    return cell;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   110
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   111
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   112
// delete the row and the file
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   113
-(void) tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   114
    NSUInteger row = [indexPath row];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   115
    
3330
987ec27b6042 add support for modifying the name of the team
koda
parents: 3328
diff changeset
   116
    NSString *teamFile = [[NSString alloc] initWithFormat:@"%@/%@",TEAMS_DIRECTORY(),[self.listOfTeams objectAtIndex:row]];
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   117
    [[NSFileManager defaultManager] removeItemAtPath:teamFile error:NULL];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   118
    [teamFile release];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   119
    
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   120
    [self.listOfTeams removeObjectAtIndex:row];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   121
    [self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   122
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   123
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   124
/*
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   125
// Override to support editing the table view.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   126
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   127
    
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   128
    if (editingStyle == UITableViewCellEditingStyleDelete) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   129
        // Delete the row from the data source
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   130
        [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   131
    }   
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   132
    else if (editingStyle == UITableViewCellEditingStyleInsert) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   133
        // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   134
    }   
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   135
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   136
*/
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   137
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   138
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   139
#pragma mark -
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   140
#pragma mark Table view delegate
3330
987ec27b6042 add support for modifying the name of the team
koda
parents: 3328
diff changeset
   141
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   142
    if (childController == nil) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   143
        childController = [[SingleTeamViewController alloc] initWithStyle:UITableViewStyleGrouped];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   144
    }
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   145
    
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   146
    NSInteger row = [indexPath row];
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   147
    NSString *selectedTeamFile = [listOfTeams objectAtIndex:row];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   148
    NSLog(@"%@",selectedTeamFile);
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   149
    
3330
987ec27b6042 add support for modifying the name of the team
koda
parents: 3328
diff changeset
   150
    // this must be set so childController can load the correct plist
3328
fe87c2242984 fix the save of the team and rearrange hat/name modification
koda
parents: 3325
diff changeset
   151
    childController.title = [selectedTeamFile stringByDeletingPathExtension];
3325
652a8ebdf667 moved around team creation
koda
parents: 3323
diff changeset
   152
    [childController.tableView setContentOffset:CGPointMake(0,0) animated:NO];
652a8ebdf667 moved around team creation
koda
parents: 3323
diff changeset
   153
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   154
    [self.navigationController pushViewController:childController animated:YES];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   155
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   156
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   157
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   158
#pragma mark -
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   159
#pragma mark Memory management
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   160
-(void) didReceiveMemoryWarning {
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   161
    // Releases the view if it doesn't have a superview.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   162
    [super didReceiveMemoryWarning];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   163
    // Relinquish ownership any cached data, images, etc that aren't in use.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   164
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   165
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   166
-(void) viewDidUnload {
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   167
    self.listOfTeams = nil;
3330
987ec27b6042 add support for modifying the name of the team
koda
parents: 3328
diff changeset
   168
    childController = nil;
987ec27b6042 add support for modifying the name of the team
koda
parents: 3328
diff changeset
   169
    [super viewDidUnload];
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   170
}
3315
4e2813713358 usa a cached dictionary and write only when needed
koda
parents: 3308
diff changeset
   171
3323
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   172
-(void) dealloc {
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   173
    [listOfTeams release];
091cf214bdd5 implement an add/remove team in the ifrontend
koda
parents: 3315
diff changeset
   174
    [childController release];
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   175
    [super dealloc];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   176
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   177
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   178
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   179
@end
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   180