Re: Cocoa-dev Digest, Vol 5, Issue 8

  • > NSTableHeaderCells behave a bit differently than other cells.
    > Normally -[NSCell highlight:withFrame:inView:] just sets the
    > isHighlighted flag (and probably marks the view as needing display).
    > NSTableHeaderCell, on the other hand, performs the drawing
    > immediately.  So -drawWithFrame:inView: is used to draw an unselected
    > table header cell, and -highlight:withFrame:inView: is used to draw a
    > selected table header cell.

    I think this goes for other cells too. I had to use these two methods
    in the drawRect method when writing a custom ListView control where I
    used a TextFieldCell subclass.

    Bertil
previous month january 2008 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today