• 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
How to have table column headers span multiple columns?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to have table column headers span multiple columns?


  • Subject: How to have table column headers span multiple columns?
  • From: "John C. Daub" <email@hidden>
  • Date: Tue, 17 Jun 2003 11:50:45 -0500

Hello.

I'm trying to figure out how to have a table's column header span multiple
columns.

For instance, I have one NSTableView in my app which has 5 columns but I
want one single header for the whole table. The columns don't need to be
sorted or have a per-column identifier; I just want a single header for the
whole table spanning the width of the table so that the table has a "label"
so the user can know what the contents of the table is about.

As well, I have another table that has 5 columns but I only want 4 column
headers since I want to treat the first 2 columns as a single column (I use
2 columns internally because it eases my layout, column 1 has an icon column
2 has the name, treat them as a single item).

I'm figuring to do something with NSTableHeaderView and/or
NSTableHeaderCell, but then I also know the NSTableColumn stores the NSCell
for the header. So I'm just not sure what I'm supposed to do to make this
happen, or if maybe there's totally another course I could take to achieve
the results I'm looking for.

Thanx. :-)

--
John C. Daub }:-)>=
<mailto:email@hidden> <http://www.hsoi.com/>
"Ain't it funny how that money rots your brain?" - Pepper Keenan
_______________________________________________
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.

  • Follow-Ups:
    • Re: How to have table column headers span multiple columns?
      • From: Don Arbow <email@hidden>
    • Re: How to have table column headers span multiple columns?
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: How to have table column headers span multiple columns?
      • From: Dave Camp <email@hidden>
  • Prev by Date: Re: NSRulerView markers
  • Next by Date: (no subject)
  • Previous by thread: NSTableView column headers
  • Next by thread: Re: How to have table column headers span multiple columns?
  • Index(es):
    • Date
    • Thread