Re: NSTableView & different columns
Re: NSTableView & different columns
- Subject: Re: NSTableView & different columns
- From: Sanri Parov <email@hidden>
- Date: Mon, 4 Jul 2005 22:07:25 +0200
On Sat, 02 Jul 2005 21:19:02 -0400, Dave Hersey wrote:
[super cut]
> I was shying away from the checkbox example because it's a more complicated
> example, but I'll get to that in a second. Here's a simpler example first.
Thanks Dave, your help is greately appreciated, but you went too far
for my needs :-))
I've understood (I think) almost at 90% what you said, but I think in
perfect Occam style that the simplest way to do things is probably the
most correct one.
As far as I've set the checkbox straight in Interface Builder, the
easiest thing to overcome is just to understand which cell to modify
when
- (id)tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn
row:(int)rowIndex
does its routine. I just want it to set on "checked" status.
Probably what I need is something like this inside the above method:
if ([[NSFileManager defaultManager] fileExistsAtPath:path])
{
id cell;
cell = [aTableColumn dataCellForRow:rowIndex];
[cell setState:NSOnState];
}
The problem is that the cell doesn't change its appearance.
Does anyone know why?
Thanks again to everybody.
--
Sanri Parov
_______________________________________________
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