Re: Modify highlight colour of row, ala iTunes or Safari
Re: Modify highlight colour of row, ala iTunes or Safari
- Subject: Re: Modify highlight colour of row, ala iTunes or Safari
- From: j o a r <email@hidden>
- Date: Wed, 9 Apr 2003 07:44:16 +0200
I haven't tried this, but you might want to check this method (from
NSTableView):
- (void) highlightSelectionInClipRect:(NSRect) clipRect
I have a feeling you shouldn't have to subclass to change the selection
color - but right now I can't find a place to set it - it "should" be
found in NSControl or NSCell somewhere...
If you do find something like that, you might be able to set the
gradient as a pattern color. Have a look at this method from NSColor:
+ (NSColor *) colorWithPatternImage:(NSImage*) image
j o a r
On Wednesday, Apr 9, 2003, at 04:50 Europe/Stockholm, Wai Liu wrote:
I have a table with blue and white stripes (iTunes style). I would
like:
1. selected rows to be highlighted in blue, like iTunes
OR
2. or highlighted in a blue gradient, like Safari.
For Safari, if you look at the resources, there is a image file with
the gradient.
Has anybody done this, or have any tips how to implement the two above?
_______________________________________________
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.