Modifying and Deleting Tasks

I am playing around with this code and trying to understand how to delete or modify a task once it’s been entered. Anyone out there done this and want to share the code?

Hey man! Here’s the method that is deleting the selected row. Let me know if you have any questions

[code]-(void) removeTask: (id) sender
{
NSIndexPath *indexPath = [[NSIndexPath alloc] initWithIndex:[self.tasksSet count]];
indexPath = [self.table indexPathForSelectedRow];
NSLog(@“current index path number is: %@”, indexPath);

// NSString *lowerString = [NSString stringWithFormat:@"%@", [self.tasksSet objectAtIndex:indexPath.row]];
// self.textFieldObjectBottom.text = lowerString;

[self.tasksSet removeObjectAtIndex:indexPath.row];
[self.table reloadData];

}[/code]