Hello there,

I tried it like this:

- (void)tableView:(NSTableView *)aTableView
  willDisplayCell:(id)aCell
   forTableColumn:(NSTableColumn *)aTableColumn
              row:(NSInteger)rowIndex
{
  NSLog(@"here");
  [aCell setBackgroundColor:[NSColor redColor]];
}

Is that what you mean? I get a bunch of log messages, so it is getting called, 
although not nearly enough given the size of the tables being displayed. 
Anyhow, there is no red background to be seen anywhere.

I suspect I'm missing something very basic here.

Best regards,

Marko

+-------------------------------------------------------------+
| Marko Riedel, EDV Neue Arbeit gGmbH, [EMAIL PROTECTED] |
| http://www.geocities.com/markoriedelde/index.html           |
+-------------------------------------------------------------+


--- Fred Kiefer <[EMAIL PROTECTED]> schrieb am Di, 29.7.2008:

> Von: Fred Kiefer <[EMAIL PROTECTED]>
> Betreff: Re: NSTableView, highlight color
> An: [EMAIL PROTECTED], [email protected]
> Datum: Dienstag, 29. Juli 2008, 19:00
> Not sure, what you want to achive, but there is
> setBackgroundColor: on NSTableView which will set the colour
> of the actual table background. In the delegate method
> tableView:willDisplayCell:forTableColumn:row: you may set
> the cell background, the value to display is only set later
> on and is determined by the data source.
> 
> Hope this helps,
> Fred
> 
> -------- Original-Nachricht --------
> > Datum: Tue, 29 Jul 2008 16:17:24 +0000 (GMT)
> > Von: Marko Riedel <[EMAIL PROTECTED]>
> > An: DISCUSS GNUstep <[email protected]>
> > Betreff: NSTableView, highlight color
> 
> > Hi all,
> > 
> > setting a table's background is easy, but how do I
> set it's highlight
> > color?
> > 
> > I tried using an attributed string in
> tableWillDisplayCell:, but to no
> > avail.
> > 
> > Best regards,
> > 
> > Marko
> > 
> >
> +-------------------------------------------------------------+
> > | Marko Riedel, EDV Neue Arbeit gGmbH,
> [EMAIL PROTECTED] |
> > | http://www.geocities.com/markoriedelde/index.html   
>        |
> >
> +-------------------------------------------------------------+
> > 
> > 
> >      
> __________________________________________________________
> > Gesendet von Yahoo! Mail.
> > Dem pfiffigeren Posteingang.
> > http://de.overview.mail.yahoo.com
> > 
> > 
> > _______________________________________________
> > Discuss-gnustep mailing list
> > [email protected]
> > http://lists.gnu.org/mailman/listinfo/discuss-gnustep
> 
> -- 
> Psssst! Schon das coole Video vom GMX MultiMessenger
> gesehen?
> Der Eine für Alle: http://www.gmx.net/de/go/messenger03
> 
> 
> _______________________________________________
> Discuss-gnustep mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/discuss-gnustep


      __________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com


_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to