• 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: Tall NSTableView Column Headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tall NSTableView Column Headers


  • Subject: Re: Tall NSTableView Column Headers
  • From: Andrew Hunter <email@hidden>
  • Date: Fri, 22 Oct 2004 17:33:04 +0100

On Thu, 21 Oct 2004 17:00:17 -0400, Keith Renz <email@hidden> wrote:
> I need a NSTableView with tall column headers to accommodate 2 lines of
> text. I previously received a reply (sorry, lost the reply) which said
> I should subclass NSTableHeaderView and override headerRectOfColumn:.
> This does not work.

One tactic is to set the header text to nothing, and then add a
subview of the NSTableHeaderView (rather than go to the effort of
subclassing it) to contain the actual header text: either just use a
standard NSTextView or roll your own. I've used this technique to
create iTunes-style 'metal' table headers, and it works well.

Andrew.

--
Andrew Hunter. http://www.logicalshift.demon.co.uk
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Tall NSTableView Column Headers
      • From: Keith Renz <email@hidden>
References: 
 >Tall NSTableView Column Headers (From: Keith Renz <email@hidden>)

  • Prev by Date: using printf to print objects
  • Next by Date: Re: Toolbar Item Validation in a Panel
  • Previous by thread: Re: Tall NSTableView Column Headers
  • Next by thread: Re: Tall NSTableView Column Headers
  • Index(es):
    • Date
    • Thread