Re: Enabled Binding bound to NSArrayController won't disable view.
Re: Enabled Binding bound to NSArrayController won't disable view.
- Subject: Re: Enabled Binding bound to NSArrayController won't disable view.
- From: Jeff Johnson <email@hidden>
- Date: Mon, 18 Feb 2008 10:36:21 -0600
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@hidden
740.590.0009
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden