• 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
Re: NSTableView highlight color too dark!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView highlight color too dark!


  • Subject: Re: NSTableView highlight color too dark!
  • From: tony cate <email@hidden>
  • Date: Thu, 22 May 2003 16:38:23 -0500

You can override a method:

- (void)tableView:(NSTableView *)tableView willDisplayCell:(id)cell
forTableColumn:(NSTableColumn *)tableColumn row:(int)row
{
[cell setDrawsBackground:YES];
if ([cell respondsToSelector:@selector(setBackgroundColor:)]) {
if (row % 2)
[cell setBackgroundColor:[NSColor whiteColor]];
else
[cell setBackgroundColor:[NSColor colorWithCalibratedHue:.6
saturation:.07
brightness:1

alpha:1]];
}
}

On Thursday, May 22, 2003, at 12:36 AM, Keith Renz wrote:

> I would like to use a lighter highlight color in my NSTableView
> subclass. The regular highlighting is way too dark. How can I use the
> highlight color used for NSTextView's text highlighting? I've tried
> several approaches but can't seem to get the nice text highlighting
> color to work in a table view. I have read the AppKit 10.2 release
> notes and understand the highlighting scheme, but table view
> highlighting is significantly darker that the Finder's list view, for
> example, without violating the scheme.
>
> Thanks,
>
> Keith
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSTableView highlight color too dark!
      • From: Keith Renz <email@hidden>
References: 
 >NSTableView highlight color too dark! (From: Keith Renz <email@hidden>)

  • Prev by Date: Application Development Proposal/Question
  • Next by Date: Re: objectForKey crashes for string formats
  • Previous by thread: NSTableView highlight color too dark!
  • Next by thread: Re: NSTableView highlight color too dark!
  • Index(es):
    • Date
    • Thread