project_files/HedgewarsMobile/Classes/SchemeSettingsViewController.m
changeset 5984 6fd40d866342
parent 5208 878e551f0b4a
child 6074 047eaed35cbb
equal deleted inserted replaced
5983:f0925204f50e 5984:6fd40d866342
    76 }
    76 }
    77 
    77 
    78 -(void) addScheme:(id) sender {
    78 -(void) addScheme:(id) sender {
    79     NSString *fileName = [[NSString alloc] initWithFormat:@"Scheme %u.plist", [self.listOfSchemes count]];
    79     NSString *fileName = [[NSString alloc] initWithFormat:@"Scheme %u.plist", [self.listOfSchemes count]];
    80 
    80 
    81     createSchemeNamed([fileName stringByDeletingPathExtension]);
    81     createSchemeNamed([fileName stringByDeletingPathExtension], 0);
    82 
    82 
    83     [self.listOfSchemes addObject:fileName];
    83     [self.listOfSchemes addObject:fileName];
    84 
    84 
    85     // order the array alphabetically, so schemes will keep their position
    85     // order the array alphabetically, so schemes will keep their position
    86     [self.listOfSchemes sortUsingSelector:@selector(compare:)];
    86     [self.listOfSchemes sortUsingSelector:@selector(compare:)];