cocoaTouch/SingleTeamViewController.m
author koda
Tue, 06 Apr 2010 02:39:06 +0000
changeset 3308 b6dcae4b6d2c
parent 3305 91074496d5c9
child 3312 6d8f1c76756d
permissions -rw-r--r--
make the tables work also on iphone make the popover menu work also on iphone
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
//  SingleTeamViewController.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 "SingleTeamViewController.h"
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    10
#import "HogHatViewController.h"
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    11
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    12
@implementation SingleTeamViewController
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    13
@synthesize hogsList, secondaryItems, teamName;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    14
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    15
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    16
#pragma mark -
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    17
#pragma mark View lifecycle
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    18
- (void)viewDidLoad {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    19
    [super viewDidLoad];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    20
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    21
    // Uncomment the following line to preserve selection between presentations.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    22
    //self.clearsSelectionOnViewWillAppear = NO;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    23
 
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    24
    // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    25
    // self.navigationItem.rightBarButtonItem = self.editButtonItem;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    26
   
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    27
    NSMutableArray *array = [[NSMutableArray alloc] initWithObjects:
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    28
                             NSLocalizedString(@"Color",@""),
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    29
                             NSLocalizedString(@"Grave",@""),
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    30
                             NSLocalizedString(@"Voice",@""),
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    31
                             NSLocalizedString(@"Fort",@""),
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    32
                             NSLocalizedString(@"Flag",@""),
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    33
                             NSLocalizedString(@"Level",@""),nil];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    34
    self.secondaryItems = array;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    35
    [array release];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    36
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    37
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    38
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    39
- (void)viewWillAppear:(BOOL)animated {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    40
    [super viewWillAppear:animated];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    41
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
3308
b6dcae4b6d2c make the tables work also on iphone
koda
parents: 3305
diff changeset
    42
    NSString *teamFile = [[NSString alloc] initWithFormat:@"%@/Teams/%@.plist",[paths objectAtIndex:0],self.teamName];
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    43
    NSDictionary *teamDict = [[NSDictionary alloc] initWithContentsOfFile:teamFile];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    44
    [teamFile release];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    45
    
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    46
    self.hogsList = [teamDict objectForKey:@"hedgehogs"];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    47
    self.teamName = [teamDict objectForKey:@"teamname"];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    48
    [teamDict release];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    49
    self.title = teamName;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    50
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    51
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    52
/*
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    53
- (void)viewDidAppear:(BOOL)animated {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    54
    [super viewDidAppear:animated];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    55
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    56
*/
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    57
/*
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    58
- (void)viewWillDisappear:(BOOL)animated {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    59
    [super viewWillDisappear:animated];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    60
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    61
*/
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    62
/*
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    63
- (void)viewDidDisappear:(BOOL)animated {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    64
    [super viewDidDisappear:animated];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    65
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    66
*/
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    67
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    68
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    69
    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    70
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    71
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    72
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    73
#pragma mark -
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    74
#pragma mark Table view data source
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    75
-(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    76
    return 3;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    77
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    78
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    79
-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    80
    NSInteger rows;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    81
    switch (section) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    82
        case 0:
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    83
            rows = 1;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    84
            break;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    85
        case 1:
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    86
            rows = 8;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    87
            break;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    88
        case 2:
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    89
            rows = 6;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    90
            break;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    91
        default:
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    92
            break;
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
    return rows;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    95
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    96
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    97
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    98
    static NSString *CellIdentifier = @"Cell";
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    99
    
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   100
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   101
    if (cell == nil) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   102
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault 
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   103
                                       reuseIdentifier:CellIdentifier] autorelease];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   104
    }
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   105
    
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   106
    NSInteger row = [indexPath row];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   107
    switch ([indexPath section]) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   108
        case 0:
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   109
            cell.textLabel.text = teamName;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   110
            break;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   111
        case 1:
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   112
            cell.textLabel.text = [[self.hogsList objectAtIndex:row] objectForKey:@"hogname"];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   113
            cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   114
            break;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   115
        case 2:
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   116
            cell.textLabel.text = [self.secondaryItems objectAtIndex:row];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   117
            break;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   118
        default:
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   119
            break;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   120
    }
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   121
    
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   122
    return cell;
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
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   126
/*
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   127
// Override to support conditional editing of the table view.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   128
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   129
    // Return NO if you do not want the specified item to be editable.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   130
    return 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
*/
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   133
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
// Override to support editing the table view.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   137
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
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
    if (editingStyle == UITableViewCellEditingStyleDelete) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   140
        // Delete the row from the data source
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   141
        [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   142
    }   
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   143
    else if (editingStyle == UITableViewCellEditingStyleInsert) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   144
        // 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
   145
    }   
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   146
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   147
*/
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   148
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   149
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   150
/*
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   151
// Override to support rearranging the table view.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   152
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   153
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   154
*/
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
// Override to support conditional rearranging of the table view.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   159
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   160
    // Return NO if you do not want the item to be re-orderable.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   161
    return YES;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   162
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   163
*/
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
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   166
#pragma mark -
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   167
#pragma mark Table view delegate
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   168
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   169
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   170
    if (1 == [indexPath section]) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   171
        if (nil == hogChildController) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   172
            hogChildController = [[HogHatViewController alloc] initWithStyle:UITableViewStyleGrouped];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   173
        }
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   174
    
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   175
        hogChildController.hog = [hogsList objectAtIndex:[indexPath row]];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   176
        //NSLog(@"%@",hogChildController.hog);
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   177
        [self.navigationController pushViewController:hogChildController animated:YES];
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
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   180
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   181
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   182
#pragma mark -
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   183
#pragma mark Memory management
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   184
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   185
-(void) didReceiveMemoryWarning {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   186
    // Releases the view if it doesn't have a superview.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   187
    [super didReceiveMemoryWarning];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   188
    // Relinquish ownership any cached data, images, etc that aren't in use.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   189
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   190
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   191
-(void) viewDidUnload {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   192
    self.hogsList = nil;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   193
    self.secondaryItems = nil;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   194
    self.teamName = nil;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   195
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   196
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   197
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   198
-(void) dealloc {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   199
    [secondaryItems release];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   200
    [hogsList release];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   201
    [teamName release];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   202
    [super dealloc];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   203
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   204
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   205
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   206
@end
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   207