• 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: Keith Renz <email@hidden>
  • Date: Fri, 22 Oct 2004 15:28:20 -0400

On Oct 22, 2004, at 12:33 PM, Andrew Hunter wrote:

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.

That's and option, but I would still need to adjust the NSTableHeaderView's height to accommodate 2 lines of text, which is my biggest roadblock to getting the standard Aqua table header "look". To get the height, I can either use a subclass or set the header view's frame size. I initially went with the subclass because I thought I might have been able to override headerRectOfColumn: to get the standard look. Unfortunately, that didn't work, so I'm headed down this road now.

Pressing on.

Keith

_______________________________________________
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
References: 
 >Tall NSTableView Column Headers (From: Keith Renz <email@hidden>)
 >Re: Tall NSTableView Column Headers (From: Andrew Hunter <email@hidden>)

  • Prev by Date: RE: Menu in iTunes
  • Next by Date: NSTextField allowing only numbers
  • Previous by thread: Re: Tall NSTableView Column Headers
  • Next by thread: Bug in NSArrayController? (immutable instead of mutable dictionaries)
  • Index(es):
    • Date
    • Thread