Re: Select checkbox in NSTableView
Re: Select checkbox in NSTableView
- Subject: Re: Select checkbox in NSTableView
- From: Jim Correia <email@hidden>
- Date: Fri, 11 Nov 2005 16:56:39 -0500
On Nov 11, 2005, at 4:41 PM, Richard Salvatierra wrote:
I have an NSTableView of 4 columns. The first of which is a checkbox.
[...]
The NSLog print out of each aCell is the same object. Is this the
prototype of the tableColumn. How do I get each columns checkbox
to set the state?
Actually, what you have is a data model with 4 attributes, one of
which is a boolean and displayed in the first column of an
NSTableView as a checkbox :-)
What you should be doing is modifying the model - setting that
boolean attribute to TRUE, then getting the table view to update. You
get the table view to update with reload data if you are using a data
source, or by KVO if you are using bindings. (Depending on how the
model is implemented, KVO may be automatic.)
Jim
_______________________________________________
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