• 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
selected table row color ala itunes ? [2]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

selected table row color ala itunes ? [2]


  • Subject: selected table row color ala itunes ? [2]
  • From: Thierry Bucco <email@hidden>
  • Date: Tue, 16 Dec 2003 18:16:45 +0100

Maybe I didn't explained what I want clearly enough, because of my
english...

I want to replace the selection color by a shaded one.

When I select a cell, the color of the selection is blue (on my mac),
what I want is to change the foreground color (selection color) by a
blue shaded like in iTunes.

In iTunes, when an album is selected, the cell is drawn with a blue
shaded.
I want to do the same thing, not to draw alternate backgound color for
the table view background.

I am using this piece of code in a NSTableView subclass provided by
fabian :

- (void)drawRow:(int)row clipRect:(NSRect)rect
{
[[NSColor greenColor] set];
[NSBezierPath fillRect:[self rectOfRow:row]];
[super drawRow:row clipRect:rect];
}

but I draw only the background not the selection color.

Thanks to all for your help.

thierry
iconless.com

--
From March, I will be in Montreal-Canada (as a permanent resident), if
you know a cool MacOS X company which is looking for a cool MacOS X
developer, please send me an email...

http://www.iconless.com/site/aboutme/resume.html
--
_______________________________________________
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: selected table row color ala itunes ? [2]
      • From: Fabian Lidman <email@hidden>
    • Re: selected table row color ala itunes ? [2]
      • From: Jonathan Wight <email@hidden>
References: 
 >selected table row color ala itunes ? (From: Thierry Bucco <email@hidden>)

  • Prev by Date: Using custom NSValueTransformer objects in single-window applications
  • Next by Date: Using invocation forwarding
  • Previous by thread: selected table row color ala itunes ?
  • Next by thread: Re: selected table row color ala itunes ? [2]
  • Index(es):
    • Date
    • Thread