• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa-dev Digest, Vol 5, Issue 8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Core Data Migration Exception
  • Next by Date: Re: SBApplication taking forever to instantiate
  • Previous by thread: Re: SBApplication taking forever to instantiate
  • Next by thread: Re: use finalize for removing AppleEvent handlers in GC apps?
  • Index(es):
    • Date
    • Thread