Re: NSTableView - Alternating blue and white background
Re: NSTableView - Alternating blue and white background
- Subject: Re: NSTableView - Alternating blue and white background
- From: email@hidden
- Date: Tue, 17 Dec 2002 10:03:09 +0000
You need to implement the tableviews delegate method -
- (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell
forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
you change the properties of the cell that is about to be drawn there .
Search the archives on this topic, theres quite a few snazzy code
snippets for doing stuff like this.
Flemming Bengtsson <email@hidden>
Sent by: email@hidden
17/12/02 09:53 am
To: email@hidden
cc:
Subject: NSTableView - Alternating blue and white
background
I would like to have alternating blue and white background in the rows
of a NSTableView, like in iTunes for example.
How is this done.
Regards
Flemming Bengtsson, FLB Software-udvikling
http://www.flbsoftwareudvikling.dk/
iChat/AOL: email@hidden
Phone: +45 24 82 24 25
_______________________________________________
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.
**********************************************************************************
This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies.
We may monitor email to and from our network.
_______________________________________________
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.