selected table row color ala itunes ? [2]
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.