In my application, I have a NSTableView view with a single column. The line highlight color is set to normal (blue). I need to change this color to my own color. In the designer of the interface, I tried to change it, but the only parameters are "No, normal and source list".
I tried this solution without success: stack overflow
I read that I need to use this delegate method, but I do not know how to use it.
- (NSTableRowView *)tableView:(NSTableView *)tableView rowViewForRow:(NSInteger)row
I tried drawing a string in this method, but I get invalid context warnings and the string still holds with the same bright color. Please write a simple example using this delegate method:
Need help please. Thanks in advance.
source share