Ch 32 Challenge Noob error


#1

I made basically the same remove task button as everyone else, but I did want to throw out a friendly warning. After I created the button, I wasn’t paying attention and ctrl clicked the NSTableView to drag to File’s owner and add the removeTask method… I thought I had clicked the remove task button lol. Basically, if you are having problems with it automatically deleting anything you select without having to hit the delete button you may have sent removeTask to the wrong object lol

[code]-(void)removeTasks:(id)sender
{
[self.tasks removeObjectAtIndex:[self.taskTable selectedRow]];
[self.taskTable reloadData];
[self updateChangeCount:NSChangeDone];

}[/code]