cocoaTouch/TeamSettingsViewController.m
changeset 3361 cfc6cd502f85
parent 3352 ac5d14a35482
child 3373 c1ff724a5c34
equal deleted inserted replaced
3360:717b4e46e855 3361:cfc6cd502f85
    36 // load the list of teams in the teams directory
    36 // load the list of teams in the teams directory
    37 -(void) viewWillAppear:(BOOL)animated {
    37 -(void) viewWillAppear:(BOOL)animated {
    38     [super viewWillAppear:animated];
    38     [super viewWillAppear:animated];
    39     
    39     
    40     NSArray *contentsOfDir = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:TEAMS_DIRECTORY() error:NULL];
    40     NSArray *contentsOfDir = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:TEAMS_DIRECTORY() error:NULL];
    41     NSMutableArray *array = [[NSMutableArray alloc] initWithArray: contentsOfDir copyItems:YES];
    41     NSMutableArray *array = [[NSMutableArray alloc] initWithArray:contentsOfDir copyItems:YES];
    42     self.listOfTeams = array;
    42     self.listOfTeams = array;
    43     [array release];
    43     [array release];
    44     
    44     
    45     [self.tableView reloadData];
    45     [self.tableView reloadData];
    46     NSLog(@"files: %@", self.listOfTeams);
    46     NSLog(@"files: %@", self.listOfTeams);