Re: Checkbox in a TableView cell
Re: Checkbox in a TableView cell
- Subject: Re: Checkbox in a TableView cell
- From: Michael Dupuis <email@hidden>
- Date: Wed, 18 Jul 2001 11:50:10 -0400
The best way to do this is to implement the delegate method
tableViewWillDisplayCell and use the aCell passed in as an NSButton. Set the
button type to NSButton.Switch and then after getting the state value from
the data source underlying your table using the tableView, tableColumn and
rowIndex passed in, use setState for the button you have created and then
set the target appropriately if necessary.
Michael
>
From: email@hidden
>
Reply-To: email@hidden
>
Date: Wed, 18 Jul 2001 08:18:10 -0700 (PDT)
>
To: email@hidden
>
Subject: cocoa-dev digest, Vol 1 #295 - 16 msgs
>
>
Hi,
>
>
I would like to put an on/off value besides a pair of values into a
>
table.
>
I think the best is to use a checkbox. What is the best way to
>
accomplish this task.
>
>
Stefan Jung