How to have table column headers span multiple columns?
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.