Re: Checkboxes in an NSTableView
Re: Checkboxes in an NSTableView
- Subject: Re: Checkboxes in an NSTableView
- From: Moray Taylor <email@hidden>
- Date: Thu, 26 Feb 2004 23:51:47 +0000
I think you might need to change the value in the datasource, the do a
reloadData:.
Cheers
Moray
I have an NSTableView that has a column of checkboxes. I'm attempting
to
programatically toggle the value of some of these boxes. I have code
that
acquires a reference to the cell by calling:
NSCell* theCell = [myTableColumn dataCellForRow: theRowIndex];
So, now I have an NSCell * which seems to be an NSButtonCell pointer
which
is what I would expect. I've attempted to call performClick on it.
I've also
tried calling [theCell setIntValue: NSOnState] (or NSOffState) which
also
doesn't work.
I've even tried to enable or disable the button cell which apparently I
can't do either.
Any ideas on how I can accomplish the goal of programatically toggling
the
checkbox cells?
Brant Sears
_______________________________________________
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.
_______________________________________________
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.