Challenge 2: Why is this method implemented?


After a lot of frustration, I finally got challenge 2 working – except I think I’m missing something.

What is the purpose of implementing:

- (void)tableView(NSTableView *)aTableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex;

Even after looking over the documentation, I can’t figure out what the difference is between this one and the method that is implemented right above it on p.144 of the 4th edition of this book. I also commented out the method listed above, and the app (seems to be) working perfectly fine. I’m really confused … What am I missing?

Thanks for any help!

P.S. This is a great book; I’m really enjoying it.


I looked back to chapter 6, and I found the answer:
This method allows the table to be edited.

I guess I need to slow down a little … This book (and programming in general) is so interesting to me that I’m trying to rush through everything to learn it as quickly as possible.