disable NSComboBoxCell in tableview
disable NSComboBoxCell in tableview
- Subject: disable NSComboBoxCell in tableview
- From: "Adam R. Maxwell" <email@hidden>
- Date: Wed, 24 May 2006 07:26:36 -0700
I have an NSComboBoxCell in a table view (NSOutlineView). In the
delegate, I have
- (void)outlineView:(NSOutlineView *)ov willDisplayCell:(id)cell
forTableColumn:(NSTableColumn *)tableColumn item:(id)item{
[...]
if (someConditionIsTrue)
[cell setEnabled:NO];
else
[cell setEnabled:YES];
}
This grays out the little arrows for the cell popup, but the text is
not grayed out. Disabling a combo box in a normal view sets the text
color to the disabled color, so I'm guessing that either a) I'm doing
something wrong or b) this is yet another problem with NSTableView
and NSComboBoxCell. Any ideas on how to make the cell text
disabledControlColor? I tried subclassing NSTableColumn and
returning a copied cell with different attributes per-row, and have a
similar problem.
thanks,
Adam
_______________________________________________
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