Re: Cocoa-dev Digest, Vol 5, Issue 8
Re: Cocoa-dev Digest, Vol 5, Issue 8
- Subject: Re: Cocoa-dev Digest, Vol 5, Issue 8
- From: Bertil Holmberg <email@hidden>
- Date: Thu, 3 Jan 2008 22:20:29 +0100
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden