I was expecting this to work, only thinking it would fail if I had locally declared another variable called "tableView"
NSLog(@"X: %@", [tableView delegate]); // Fails: tableView undeclared
.
NSLog(@"X: %@", [[self tableView] delegate]); // Works:
Is this because you need self to refer to items on the actual object?
NB: this code is inside a UITableViewController, so delegate is a property on the UITableView.