• 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: Correctly Subclassing NSTableHeaderCell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Correctly Subclassing NSTableHeaderCell?


  • Subject: Re: Correctly Subclassing NSTableHeaderCell?
  • From: Tommy Nordgren <email@hidden>
  • Date: Fri, 4 Jan 2008 01:33:54 +0100


On 3 jan 2008, at 17.33, Daniel Kennett wrote:

Hey all,

I'm trying to subclass NSTableHeaderCell to get a darker look, a'la iTunes and iCal. I've got it drawing perfectly well and I'm happy with the look, but I can't get it to highlight when clicked or is the sorted column, and I can't get it to show the sort direction indicator either.

I've searched the docs and online, but can't seem to find anything. Has anyone done this successfully?

<Picture 2.png>



Thanks,

-- Daniel

_______________________

  email@hidden
  http://www.kennettnet.co.uk

Please include previous messages in any reply you send.


	Just use the methods setTextColor: and setBackgroundColor:
which NSTableHeaderCell inherits from its bas class NSTextFieldCell;
a good place to invoke them would be in awakeFromNib:
------------------------------------------------------
"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"
email@hidden


_______________________________________________

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


References: 
 >Correctly Subclassing NSTableHeaderCell? (From: Daniel Kennett <email@hidden>)

  • Prev by Date: Re: Questions about enhancing the Learn Cocoa II app.
  • Next by Date: Re: Questions about enhancing the Learn Cocoa II app.
  • Previous by thread: Re: Correctly Subclassing NSTableHeaderCell?
  • Next by thread: Re: Correctly Subclassing NSTableHeaderCell?
  • Index(es):
    • Date
    • Thread