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

Re: How to have table column headers span multiple columns?


  • Subject: Re: How to have table column headers span multiple columns?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Wed, 18 Jun 2003 13:03:30 +0200

At 11:50 Uhr -0500 17.06.2003, John C. Daub wrote:
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.

In that case, I think the recommended way (disregarding any recent changes in the Aqua HIG) is to give your column no header and put it in a box control. You can give that box a title.

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).

If all else fails, you could use a custom cell type that displays an icon and the text in one cell. If you want sample code on how to put another cell than NSCell in a column, check out my NSTableView wizard. The code it generates for custom cells should help you getting started.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: "John C. Daub" <email@hidden>
References: 
 >How to have table column headers span multiple columns? (From: "John C. Daub" <email@hidden>)

  • Prev by Date: EDCommon Anyone?
  • Next by Date: Using static library in Cocoa app
  • Previous by thread: Re: How to have table column headers span multiple columns?
  • Next by thread: Re: How to have table column headers span multiple columns?
  • Index(es):
    • Date
    • Thread