project_files/HedgewarsMobile/Classes/SingleSchemeViewController.m
changeset 3660 bc125bea5849
parent 3659 f8d5ac50e307
child 3662 a44406f4369b
equal deleted inserted replaced
3659:f8d5ac50e307 3660:bc125bea5849
   131 }
   131 }
   132 
   132 
   133 #pragma mark -
   133 #pragma mark -
   134 #pragma mark editableCellView delegate
   134 #pragma mark editableCellView delegate
   135 // set the new value
   135 // set the new value
   136 -(void) saveTextFieldValue:(NSString *)textString {    
   136 -(void) saveTextFieldValue:(NSString *)textString withTag:(NSInteger) tagValue {    
   137     // delete old file
   137     // delete old file
   138     [[NSFileManager defaultManager] removeItemAtPath:[NSString stringWithFormat:@"%@/%@.plist",SCHEMES_DIRECTORY(),self.schemeName] error:NULL];
   138     [[NSFileManager defaultManager] removeItemAtPath:[NSString stringWithFormat:@"%@/%@.plist",SCHEMES_DIRECTORY(),self.schemeName] error:NULL];
   139     // update filename
   139     // update filename
   140     self.schemeName = textString;
   140     self.schemeName = textString;
   141     // save new file
   141     // save new file