• 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: NSTableHeaderView split
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSTableHeaderView split (From: Varun Chandramohan <email@hidden>)

  • Prev by Date: NSTableHeaderView split
  • Next by Date: Single-item action sheet wrong size
  • Previous by thread: NSTableHeaderView split
  • Next by thread: Single-item action sheet wrong size
  • Index(es):
    • Date
    • Thread