Re: How to have table column headers span multiple columns?
Re: How to have table column headers span multiple columns?
- Subject: Re: How to have table column headers span multiple columns?
- From: "John C. Daub" <email@hidden>
- Date: Wed, 18 Jun 2003 06:58:53 -0500
on 6/18/03 6:03 AM, M. Uli Kusterer at email@hidden 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.
I had tried that approach at first, but honestly it didn't look as good.
Plus I need to have the table within a splitter and for whatever reason
trying to work a table with some sort of "external header" just freaked out
the splitter functionality within Interface Builder. :-(
>
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.
Dave Camp also responded to this effect and sent me some sample code that
demonstrated the concept. I'm going to start on this route this morning and
see where it takes me.
Thanx for the reply.
--
John C. Daub }:-)>=
<
mailto:email@hidden> <
http://www.hsoi.com/>
"Government is good at only one thing: it breaks your legs, hands you a pair
of crutches, and says, 'See, without us you wouldn't be able to walk.'" -
Harry Browne <
http://www.harrybrowne.org/>
_______________________________________________
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.