detz
Jan 29, 2009, 05:13 PM
I've been trying to get this to work all day and I just can't get it. I have two items showing in the cell but I can't figure out how to change the text once it's there.
CustomCell (http://pastebin.com/m182cc2fb)
Would I have to do something in this method?
- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex{
NSLog(@"%@ - %d",aTableColumn, rowIndex);
if ([[aTableColumn identifier] isEqualToString:@"Title"]){
//something to change the values?
}
return [title objectAtIndex:rowIndex];
}
The picture shows what I'm trying to do, I need to change both of those values under Title.
CustomCell (http://pastebin.com/m182cc2fb)
Would I have to do something in this method?
- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex{
NSLog(@"%@ - %d",aTableColumn, rowIndex);
if ([[aTableColumn identifier] isEqualToString:@"Title"]){
//something to change the values?
}
return [title objectAtIndex:rowIndex];
}
The picture shows what I'm trying to do, I need to change both of those values under Title.
