Unfortunately, I don’t know of any documentary way to do this, except for writing your own table view replacement.
Override Method:
- (void)drawContextMenuHighlightForRow:(NSInteger)row;
Please write an improvement request with Apple, so you don’t have to rely on undocumented methods to do what you want in the future. It seems that the other two table highlighting methods were made custom in 10.6, but this was not. I always thought this was a bit clumsy look, but you must specify which line the menu refers to (not necessarily the same as the highlighted line).
Nicholas iley
source share