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

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.

References: 
 >selected table row color ala itunes ? (From: Thierry Bucco <email@hidden>)

  • Prev by Date: Re: NSSegmentedControl not giving small and mini variants?
  • Next by Date: Re: Controller layer and application design
  • Previous by thread: Re: selected table row color ala itunes ?
  • Next by thread: Using custom NSValueTransformer objects in single-window applications
  • Index(es):
    • Date
    • Thread