project_files/HedgewarsMobile/Classes/GravesViewController.m
branchios-revival
changeset 11148 064a53861759
parent 10108 c68cf030eded
child 12872 00215a7ec5f5
equal deleted inserted replaced
11147:f9c460720e02 11148:064a53861759
    86 
    86 
    87 
    87 
    88 #pragma mark -
    88 #pragma mark -
    89 #pragma mark Table view delegate
    89 #pragma mark Table view delegate
    90 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    90 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    91     int newRow = [indexPath row];
    91     NSInteger newRow = [indexPath row];
    92     int oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1;
    92     NSInteger oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1;
    93 
    93 
    94     if (newRow != oldRow) {
    94     if (newRow != oldRow) {
    95         [teamDictionary setObject:[[graveArray objectAtIndex:newRow] stringByDeletingPathExtension] forKey:@"grave"];
    95         [teamDictionary setObject:[[graveArray objectAtIndex:newRow] stringByDeletingPathExtension] forKey:@"grave"];
    96 
    96 
    97         // tell our boss to write this new stuff on disk
    97         // tell our boss to write this new stuff on disk