cocoaTouch/DetailViewController.m
author koda
Thu, 29 Apr 2010 17:20:42 +0000
changeset 3375 88bb88294e06
parent 3374 0d522416d97f
child 3487 b1d00f1950c8
permissions -rw-r--r--
this should fix the old project name that is present in the scm database
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
//  DetailViewController.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 27/03/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 "DetailViewController.h"
3312
6d8f1c76756d restore and update the old general settings
koda
parents: 3308
diff changeset
    10
#import "SDL_uikitappdelegate.h"
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    11
#import "GeneralSettingsViewController.h"
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    12
#import "TeamSettingsViewController.h"
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    13
#import "WeaponSettingsViewController.h"
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    14
#import "SchemeSettingsViewController.h"
3335
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3316
diff changeset
    15
#import "CommodityFunctions.h"
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    16
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    17
@implementation DetailViewController
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    18
@synthesize popoverController, controllerNames;
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    19
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    20
3335
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3316
diff changeset
    21
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3316
diff changeset
    22
	return rotationManager(interfaceOrientation);
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3316
diff changeset
    23
}
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3316
diff changeset
    24
3357
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    25
-(void) viewDidLoad {
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    26
    self.title = NSLocalizedString(@"Settings",@"");
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    27
3316
52f0482b043f fix a couple of leaks in hte ifrontend
koda
parents: 3312
diff changeset
    28
    // allocate controllers and store them into the array
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    29
    NSArray *array= [[NSArray alloc] initWithObjects:NSLocalizedString(@"General",@""), 
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    30
                                                     NSLocalizedString(@"Teams",@""),
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    31
                                                     NSLocalizedString(@"Weapons",@""),
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    32
                                                     NSLocalizedString(@"Schemes",@""),
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    33
                                                     nil];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    34
    self.controllerNames = array;
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    35
    [array release];
3316
52f0482b043f fix a couple of leaks in hte ifrontend
koda
parents: 3312
diff changeset
    36
    
52f0482b043f fix a couple of leaks in hte ifrontend
koda
parents: 3312
diff changeset
    37
    // on ipad make the general setting the first view, on iphone add the "Done" button on top left
52f0482b043f fix a couple of leaks in hte ifrontend
koda
parents: 3312
diff changeset
    38
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    39
        
3357
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    40
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(112, 112, 480, 320)];
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    41
        label.text = @"Press the buttons on the left";
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    42
        label.font = [UIFont systemFontOfSize:20];
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    43
        label.textAlignment = UITextAlignmentCenter;
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    44
        [self.view addSubview:label];
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    45
        [label release];
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    46
        
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    47
        //[self.navigationController pushViewController:nextController animated:NO];
3316
52f0482b043f fix a couple of leaks in hte ifrontend
koda
parents: 3312
diff changeset
    48
    } else {
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    49
        self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    50
                                                                                              target:self
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    51
                                                                                              action:@selector(dismissSplitView)];
3316
52f0482b043f fix a couple of leaks in hte ifrontend
koda
parents: 3312
diff changeset
    52
    }
52f0482b043f fix a couple of leaks in hte ifrontend
koda
parents: 3312
diff changeset
    53
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    54
    [super viewDidLoad];
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
#pragma mark -
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    59
#pragma mark Table view data source
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    60
-(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView {
3357
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    61
    // don't display 
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    62
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    63
        return 0;
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    64
    else
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    65
        return 1;
3305
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
-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    69
    return [controllerNames count];
3305
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
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    73
    static NSString *CellIdentifier = @"Cell";
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    74
    
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    75
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    76
    if (cell == nil) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    77
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault 
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    78
                                       reuseIdentifier:CellIdentifier] autorelease];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    79
    }
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    80
    
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    81
    NSInteger row = [indexPath row];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    82
    
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    83
    cell.textLabel.text = [controllerNames objectAtIndex:row];
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    84
    cell.imageView.image = [UIImage imageNamed:@"Icon.png"];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    85
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    86
    
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    87
    return cell;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    88
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    89
3357
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    90
#pragma mark -
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    91
#pragma mark Table view delegate
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    92
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    93
    NSInteger row = [indexPath row];
3364
e5403e2bf02c no more hardcoded teams, team selection is real \o/
koda
parents: 3357
diff changeset
    94
    UIViewController *nextController = nil;
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    95
    
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    96
    switch (row) {
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    97
        case 0:
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    98
            if (nil == generalSettingsViewController)
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    99
                generalSettingsViewController = [[GeneralSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   100
            nextController = generalSettingsViewController;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   101
            break;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   102
        case 1:
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   103
            if (nil == teamSettingsViewController)
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   104
                teamSettingsViewController = [[TeamSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   105
            nextController = teamSettingsViewController;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   106
            break;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   107
        case 2:
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   108
            if (nil == weaponSettingsViewController)
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   109
                weaponSettingsViewController = [[WeaponSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   110
            nextController = weaponSettingsViewController;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   111
            break;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   112
        case 3:
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   113
            if (nil == schemeSettingsViewController)
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   114
                schemeSettingsViewController = [[SchemeSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   115
            nextController = schemeSettingsViewController;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   116
            break;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   117
    }
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   118
    
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   119
    nextController.title = [controllerNames objectAtIndex:row];
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   120
    [self.navigationController pushViewController:nextController animated:YES];
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
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
#pragma mark -
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   125
#pragma mark Managing the popover controller
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   126
// When setting the detail item, update the view and dismiss the popover controller if it's showing.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   127
-(void) setDetailItem:(id) newDetailItem {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   128
    if (detailItem != newDetailItem) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   129
        [detailItem release];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   130
        detailItem = [newDetailItem retain];
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
        // Update the view.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   133
       // navigationBar.topItem.title = (NSString*) detailItem;
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
		//test.text=(NSString*) detailItem;
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
  //  if (popoverController != nil) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   139
  //      [popoverController dismissPopoverAnimated:YES];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   140
  //  }        
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   141
}
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
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   144
#pragma mark -
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   145
#pragma mark Split view support
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   146
#ifdef __IPHONE_3_2
3335
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3316
diff changeset
   147
-(void) splitViewController:(UISplitViewController *)svc willHideViewController:(UIViewController *)aViewController withBarButtonItem:(UIBarButtonItem *)barButtonItem forPopoverController:(UIPopoverController *)pc {
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   148
    barButtonItem.title = @"Master List";
3335
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3316
diff changeset
   149
    [self.navigationController.navigationBar.topItem setLeftBarButtonItem:barButtonItem animated:YES];
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   150
    self.popoverController = pc;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   151
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   152
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   153
// Called when the view is shown again in the split view, invalidating the button and popover controller.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   154
-(void) splitViewController: (UISplitViewController*)svc willShowViewController:(UIViewController *)aViewController invalidatingBarButtonItem:(UIBarButtonItem *)barButtonItem {
3335
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3316
diff changeset
   155
    [self.navigationController.navigationBar.topItem setLeftBarButtonItem:nil animated:YES];
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   156
    self.popoverController = nil;
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
#endif
3316
52f0482b043f fix a couple of leaks in hte ifrontend
koda
parents: 3312
diff changeset
   159
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   160
-(IBAction) dismissSplitView {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   161
    [[NSNotificationCenter defaultCenter] postNotificationName:@"dismissModalView" object:nil];
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
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   164
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   165
-(void) didReceiveMemoryWarning {
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   166
    // Releases the view if it doesn't have a superview.
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   167
    [super didReceiveMemoryWarning];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   168
    // Release any cached data, images, etc that aren't in use.
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   169
}
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   170
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   171
-(void) viewDidUnload {
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   172
    self.controllerNames = nil;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   173
    self.popoverController = nil;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   174
    generalSettingsViewController = nil;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   175
    teamSettingsViewController = nil;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   176
    weaponSettingsViewController = nil;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   177
    schemeSettingsViewController = nil;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   178
    [super viewDidUnload];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   179
}
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   180
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   181
-(void) dealloc {
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   182
    [controllerNames release];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   183
    [popoverController release];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   184
    [generalSettingsViewController release];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   185
    [teamSettingsViewController release];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   186
    [weaponSettingsViewController release];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   187
    [schemeSettingsViewController release];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   188
    [super dealloc];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   189
}
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   190
@end