FROM : Christiaan Hofman
DATE : Sun Apr 03 14:29:11 2005
From your question I assume you are using the old-fashioned datasource
way, rather than binding? (with binding it should be obvious). Then
you could use the delegate method
-tableView:willDisplayCell:forTableColumn:row:
or you could do it in the datasource method
-tableView:objectValueForTableColumn:row:
but that sounds a bit like a cheat. But it seems that you already do
something like that for the text, as the return value of the latter
method is used for the button state for checkbuttons.
HTH,
Christiaan
On Apr 3, 2005, at 15:14, paul webb wrote:
> hi,
>
> I have a tableView and one of the table column is a
> set of checkboxes, other columns are text. Set this up
> with interface builder.
>
> I have my data source supplying the text values, but
> I also wish to be able setEnabled:NO (fade a checkbox)
> for some of the checkboxes that are in certain rows .
>
> And also to setTransparent:YES or NO for some too.
>
> how can I do this??
>
> thanks for any help
> paul
DATE : Sun Apr 03 14:29:11 2005
From your question I assume you are using the old-fashioned datasource
way, rather than binding? (with binding it should be obvious). Then
you could use the delegate method
-tableView:willDisplayCell:forTableColumn:row:
or you could do it in the datasource method
-tableView:objectValueForTableColumn:row:
but that sounds a bit like a cheat. But it seems that you already do
something like that for the text, as the return value of the latter
method is used for the button state for checkbuttons.
HTH,
Christiaan
On Apr 3, 2005, at 15:14, paul webb wrote:
> hi,
>
> I have a tableView and one of the table column is a
> set of checkboxes, other columns are text. Set this up
> with interface builder.
>
> I have my data source supplying the text values, but
> I also wish to be able setEnabled:NO (fade a checkbox)
> for some of the checkboxes that are in certain rows .
>
> And also to setTransparent:YES or NO for some too.
>
> how can I do this??
>
> thanks for any help
> paul
| Related mails | Author | Date |
|---|---|---|
| paul webb | Apr 3, 14:14 | |
| Christiaan Hofman | Apr 3, 14:29 |






Cocoa mail archive

