Table view notification -- but from which table?

Hello everyone,

This is not a question or a help request but a little remark about notifications which should have be noticed by everybody, but I post it anyway:

If you have more than one tableView in your app, and have implemented some delegate’s methods, like on tableView_willDisplayCell_forTableColumn_row_(tv, aCell, aCol, theRow), you should always check which of them has sent the notification, or you will run into (silent) errors of type “outside range”. So:

Hope this may be useful, if not trivial.

Regards,

Yes, you need to do that – or have separate classes as delegates for different tables.