Implement a class with three instance variables, an init method, and accessor methods for the three variables.
The names of the three variables will match the names of your tableview's three column identifiers.
Your objectValueForTableColumn method will look something like this:<font size = "+1"><pre>- (id)tableViewNSTableView *)aTableView<br> objectValueForTableColumnNSTableColumn *)aTableColumn<br> rowint)rowIndex<br>{<br> //use a string to select the current identifier<br> NSString *identifier = [aTableColumn identifier];<br><br> //For tableRowData, subistitute whatever class stores your row data<br> //For tableViewDataArray, substitute the name of your array of tableRowData objects<br> tableRowData *rowData = [tableViewDataArray objectAtIndex:rowIndex];<br><br> //You can now display cell objects this way:<br> [rowData takeValue:anObject forKey:identifier];<br>}
</pre></font>
Your setObjectValue method will return [rowData valueForKey:identifier];