Re: NSTableView & different columns
Re: NSTableView & different columns
- Subject: Re: NSTableView & different columns
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 4 Jul 2005 13:33:02 -0700
On Jul 4, 2005, at 1:07 PM, Sanri Parov wrote:
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];
}
NO!
As I've shown twice now, all you have to do is to return an
appropriate NSNumber value.
The problem is that the cell doesn't change its appearance.
Does anyone know why?
Because you're not doing what the API asks of you.
On 7/3/05 5:52 PM, "Sanri Parov" <email@hidden> wrote:
I've already tried to do this.
The app crashes with a SIGBUS 10 :-((
As Dave noted, the problem is elsewhere in your code.
Have you set up an identifier for the column? Where does the
application crash?
mmalc
_______________________________________________
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