Re: NSTableHeaderView split
Re: NSTableHeaderView split
- Subject: Re: NSTableHeaderView split
- From: Graham Cox <email@hidden>
- Date: Tue, 24 Jun 2014 10:46:04 +1000
On 24 Jun 2014, at 10:35 am, Varun Chandramohan <email@hidden> wrote:
> Hi All,
>
> Is there ant simple to have a split header view to generalise sub header? Here is an example of what I want to achieve using NSTableHeaderView?
>
> ---------------------------
> | header 1 | Common Header Txt |
> | | -------------------------------------------------------------
> | | header 2 | header 3 | header 4| header 5 |
> ----------------------------
> | row 1 | | | | |
> ----------------------------
>
> Is there any other way to do the same?
Subclass the NSTableHeaderView and do whatever you want - it's just a view, you can customise it and draw whatever you want in there. Its -headerRectOfColumn: method supplies the positions of the divider lines, you can use that to draw dividers and position text as you wish.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden