Re: NSTableView custom cell problem
Re: NSTableView custom cell problem
- Subject: Re: NSTableView custom cell problem
- From: j o a r <email@hidden>
- Date: Thu, 6 Jan 2005 21:52:34 +0100
On 2005-01-06, at 21.47, Andrew Skinner wrote:
What I did to make it (semi)work was this (please bear in mind I was
getting desperate by this point):
- (void)tableView:(NSTableView *)view
willDisplayCell:(id)cell
forTableColumn:(NSTableColumn *)col
row:(int)row
{
if ([[col identifier] isEqualTo: @"name"]) {
feedCell *nameCell = [[feedCell alloc] init];
[col setDataCell:nameCell];
}
else if ([[col identifier] isEqualTo: @"icon"])
{
[cell setImage:[NSImage imageNamed: @"Picture"]];
}
}
That doesn't quite make sense. Zip up the project and send it to me,
and I'll fix your table view free of charge.
[cell representedObject];
This just returns the cells object value. Something else I thought i'd
try.
Yes, but you don't do anything with the returned value - so it's kind
of moot.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden