Re: selected table row color ala itunes ?
Re: selected table row color ala itunes ?
- Subject: Re: selected table row color ala itunes ?
- From: Thierry Bucco <email@hidden>
- Date: Wed, 17 Dec 2003 09:51:46 +0100
I just want to say Thank You to all.
I solved my problem.
The fabian's method works, I also discover that I can use :
- (NSColor *)highlightColorWithFrame:(NSRect)cellFrame inView:(NSView
*)controlView
{
return [NSColor colorWithPatternImage:highlightColorForSelection];
}
Which is in NSCell class.
But I have a new little question...
I created a custom control for my NSTableView, because I need to draw
an image and write 2 strings on each cell.
NSTableView's data source is an array with NSObjects (each object
contains : path for an image, and 2 NSString).
I am asking myself about the need of subclassing NSCell, since I
discovered that I can do the same work using :
-(void) drawRow: (int)rowIndex clipRect: (NSRect)clipRect (in
NSTableView).
What do you think ?
Thanks again.
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.