• 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
Redrawing NSTableHeaderCells when on window activation or deactivation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Redrawing NSTableHeaderCells when on window activation or deactivation


  • Subject: Redrawing NSTableHeaderCells when on window activation or deactivation
  • From: Pete Yandell <email@hidden>
  • Date: Wed, 11 Feb 2004 22:16:59 +1100

I'm trying to mimic the iTunes table column headers, in which the text greys out whenever the window is not in the foreground. I've got a table column header cell class that does the drawing, but I need the headers to be redrawn whenever the window activates or deactivates.

Is there a simple way to do this? I can write something to intercept the relevant window messages and pass them down, but I figure there's probably a neater way given that many controls have this sort of behaviour built in.

I have a feeling this is one of those times where I've missed something obvious in the docs. :)

Pete Yandell
http://pete.yandell.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Customizing NSSearchField menu
  • Next by Date: Re: Programming a Printer Driver for Mac OS X 10.3
  • Previous by thread: Re: NSEnumerator doesn't support NSCopying - why?
  • Next by thread: What's wrong with ToolbarItem setLabel?
  • Index(es):
    • Date
    • Thread