FROM : Jeff Johnson
DATE : Mon Feb 18 17:36:21 2008
Ben,
I can confirm that setEnabled:NO on the tableview doesn't seem to
work right. So you may indeed have to take some 'extreme' measures
to get this to work. However, you can successfully get the cell text
color to change automatically if you set the enabled bindings on the
table columns.
-Jeff
On Feb 17, 2008, at 10:06 PM, Ben Lachman wrote:
> After banging my head against this for another couple hours I
> decided just to do the enabling/disabling UI changes manually. It
> seems that setEnable is being called just like it should be on the
> table view, its just that the tableview isn't responding
> "correctly". So I now stop accepting first responder, deselect any
> selected row, ignore scrolling and turn off the scrollers, and draw
> the text of the cells using a light gray text color when the
> textview is disabled. To do this I have to subclass both the
> tableview and its enclosing scrollview and define a delegate (to
> change the text color and ignore selection of table rows when the
> table doesn't accept first responder... not sure about that one).
> Seems like NSTableView should do this for you when you disable it...
>
> Anyone have any thoughts on this?
>
> ->Ben
> --
> Ben Lachman
> Acacia Tree Software
>
> http://acaciatreesoftware.com
>
> <email_removed>
> 740.590.0009
>
DATE : Mon Feb 18 17:36:21 2008
Ben,
I can confirm that setEnabled:NO on the tableview doesn't seem to
work right. So you may indeed have to take some 'extreme' measures
to get this to work. However, you can successfully get the cell text
color to change automatically if you set the enabled bindings on the
table columns.
-Jeff
On Feb 17, 2008, at 10:06 PM, Ben Lachman wrote:
> After banging my head against this for another couple hours I
> decided just to do the enabling/disabling UI changes manually. It
> seems that setEnable is being called just like it should be on the
> table view, its just that the tableview isn't responding
> "correctly". So I now stop accepting first responder, deselect any
> selected row, ignore scrolling and turn off the scrollers, and draw
> the text of the cells using a light gray text color when the
> textview is disabled. To do this I have to subclass both the
> tableview and its enclosing scrollview and define a delegate (to
> change the text color and ignore selection of table rows when the
> table doesn't accept first responder... not sure about that one).
> Seems like NSTableView should do this for you when you disable it...
>
> Anyone have any thoughts on this?
>
> ->Ben
> --
> Ben Lachman
> Acacia Tree Software
>
> http://acaciatreesoftware.com
>
> <email_removed>
> 740.590.0009
>
| Related mails | Author | Date |
|---|---|---|
| Ben Lachman | Feb 17, 09:10 | |
| Jeff Johnson | Feb 17, 15:37 | |
| Ben Lachman | Feb 17, 20:58 | |
| Ben Lachman | Feb 18, 05:06 | |
| Jeff Johnson | Feb 18, 17:36 |






Cocoa mail archive

