• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
disable NSComboBoxCell in tableview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: RE: NSFormatter for hexadecimal numbers
  • Next by Date: Re: Xcode 2.3 and May Documentation Update
  • Previous by thread: Re: NSImage Gradient Mask
  • Next by thread: User Resizing of Controls
  • Index(es):
    • Date
    • Thread