ImageInTableview
ImageInTableview
- Subject: ImageInTableview
- From: Mathew Peterson <email@hidden>
- Date: Sun, 10 Aug 2003 14:06:08 -0600
I want to place a small image in a tableview row for a certain column
when its called. This is the code I am using but its simply sending me
a description of the image (sure, the image is there...just not in the
right form).
How can I make the image display correctly?
- (id)tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn
row:(int)rowIndex
{
if ([[aTableColumn identifier] isEqualToString:@"icon"])
{
return([NSImage imageNamed:@"library"]);
}
return([item objectAtIndex:rowIndex]);
}
Thanks,
Mat
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.