- (void)tableView:(UITableView *)tableView
didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if ([indexPath section] == 0) {
switch ([indexPath row]) {
case 0:
[self renameExercise];
[[self tableView] deselectRowAtIndexPath:indexPath
animated:YES];
break;
case 1:
EditRootNoteViewController *newController = [[EditRootNoteViewController alloc] initWithNibName:@"EditNoteView"
bundle:nil];
[newController setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
[newController setDelegate:self];
[self presentModalViewController:newController
animated:YES];
[newController release];
break;
xCode 'expects expression before EditRootNoteViewController...but why come? this same bit of code works outside this switch...which is probably some sort of clue, but i haven't the slightest of what.