Which method sho开发者_如何学Culd I subclass to change the drawing when a row is right-mouse clicked? (I want to change it in selecting the row).
It sounds to me like you want the highlightSelectionInClipRect:
method.
If you're looking to make a source list (like in iTunes, Mail, and the Finder), you should use the setSelectionHighlightStyle:
method (or set that property in IB) instead.
Implement the delegate method tableView:willDisplayCell:forTableColumn:row:
精彩评论