Hi All,
Well, thanks to the people who helped out on my last question, I have finally worked out how to use the NSTableView and loading it with data from different arrays.
OK... now my window needs to have an additional TableView.
The issue is, the Class won't allow me to have two data source's:
How do I now get around this?
Pete
Well, thanks to the people who helped out on my last question, I have finally worked out how to use the NSTableView and loading it with data from different arrays.
OK... now my window needs to have an additional TableView.
The issue is, the Class won't allow me to have two data source's:
Code:
- (NSInteger)numberOfRowsInTableView:(NSTableView *)inputView {
return [inputArray count];
}
- (id)tableView:(NSTableView *)inputView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex {
return [inputArray objectAtIndex:rowIndex];
}
How do I now get around this?
Pete