• 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
Re: Modify highlight colour of row, ala iTunes or Safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Modify highlight colour of row, ala iTunes or Safari (From: Wai Liu <email@hidden>)

  • Prev by Date: Re: NSTableView and crashes, what am I doing wrong?
  • Next by Date: Using icns??
  • Previous by thread: Modify highlight colour of row, ala iTunes or Safari
  • Next by thread: NSTextField Rounded - Set background colour (iTunes style) ?
  • Index(es):
    • Date
    • Thread