Change the text color in an NSTableView based on the data in the row
Change the text color in an NSTableView based on the data in the row
- Subject: Change the text color in an NSTableView based on the data in the row
- From: Bryan Zarnett <email@hidden>
- Date: Sun, 6 Sep 2009 19:40:39 -0400
I would like to set the text color of the cell in an NSTableView based
on a particular set of data in the table of in the associated array
controller. I currently have the basic code for the coloring changing
working right now in "willDisplayCell". What I am not sure about is
how to (1) retrieve a column for the same row to check the data for a
cell, or (2) check the associate array controller being used to
populate the cell data to see if a different field has related data.
For example, while viewing the "Name" column in "willDisplayCell", I
also want to see the other data that it is associated to -- perhaps
not all the data is displayed in the NSTableView.
Thoughts?
Bryan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden