root/trunk/Views/JVMixedTableColumn.m

Revision 3418, 0.6 kB (checked in by timothy, 2 years ago)

Turing on more warnings and fixing more of them.

Line 
1 #import "JVMixedTableColumn.h"
2
3 @implementation JVMixedTableColumn
4 - (void) awakeFromNib {
5         delegateDataCellForRow = [[_tableView delegate] respondsToSelector:@selector( tableView:dataCellForRow:tableColumn: )];
6 }
7
8 - (void) setTableView:(NSTableView *) tableView {
9         [super setTableView:tableView];
10         delegateDataCellForRow = [[_tableView delegate] respondsToSelector:@selector( tableView:dataCellForRow:tableColumn: )];
11 }
12
13 - (id) dataCellForRow:(int) row {
14         id ret = nil;
15         if( delegateDataCellForRow && ( ret = [[_tableView delegate] tableView:_tableView dataCellForRow:row tableColumn:self] ) )
16                 return ret;
17         return [super dataCellForRow:row];
18 }
19 @end
Note: See TracBrowser for help on using the browser.