Skip to content
Snippets Groups Projects
Commit d0ffd532 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fixme

parent 07645e16
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.5.1.0</string>
<string>1.5.1.1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIFileSharingEnabled</key>
......
......@@ -158,7 +158,7 @@
[self.tableView endUpdates];
}
- (void)removeParemeterNumberAtIndex:(NSIndexPath*)index
- (void)removeParameterAtIndex:(NSIndexPath*)index
{
[self.tableView beginUpdates];
[self.tableView deleteRowsAtIndexPaths: [NSArray arrayWithObject:index]
......@@ -231,8 +231,16 @@ NSString *GetSectionTitle(NSString *name)
break;
}
}
if(!found) // the parameter is not in the section, add it
if(!found){ // the parameter is not in the section, add it
// FIXME: we should insert it at the right position
// int index = 0;
// while(index < [section count]) {
// if([[[section objectAtIndex: index] getName] compare:name] == NSOrderedAscending) break;
// index++;
// }
// + do the necessary reloads of indexPaths in the updates
[self addParameterNumber:number[i] atIndexPath:[NSIndexPath indexPathForRow:[section count] inSection:iSection]];
}
found = true; break;
}
}
......@@ -262,8 +270,10 @@ NSString *GetSectionTitle(NSString *name)
break;
}
}
if(!found) // the parameter is not in the section, add it
if(!found){ // the parameter is not in the section, add it
// FIXME: we should insert it at the right position
[self addParameterString:string[i] atIndexPath:[NSIndexPath indexPathForRow:[section count] inSection:iSection]];
}
found = true; break;
}
}
......@@ -286,7 +296,7 @@ NSString *GetSectionTitle(NSString *name)
(number.size() > 0 && !number[0].getVisible()) ||
(string.size() > 0 && !string[0].getVisible())){
[section removeObjectAtIndex:iparameter];
[self removeParemeterNumberAtIndex:[NSIndexPath indexPathForRow:iparameter inSection:iSection]];
[self removeParameterAtIndex:[NSIndexPath indexPathForRow:iparameter inSection:iSection]];
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment