1

Which method should I subclass to change the drawing when a row is right-mouse clicked? (I want to change it in selecting the row).

Jef
  • 297
  • 5
  • 15

2 Answers2

3

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.

Peter Hosey
  • 95,783
  • 15
  • 211
  • 370
  • And what if I right-click on it? I actually meant to change the blue ring thing that you see when you right-click on it in a selected highlight.. http://img15.imageshack.us/img15/7310/picture5nn.png – Jef Mar 20 '10 at 15:15
2

Implement the delegate method tableView:willDisplayCell:forTableColumn:row:

diederikh
  • 25,221
  • 5
  • 36
  • 49
  • Hmm, maybe I explained my problem not good enough. I mean when you right-click on it. Then you get this blue focus thing (like when you drop a file on an NSTableView) and as far as I can tell it's not the focusring from the NSView http://img15.imageshack.us/img15/7310/picture5nn.png (got this from the DragNDropOutlineView example from Apple) – Jef Mar 20 '10 at 15:13