On 24 Jun 2014, at 10:35 am, Varun Chandramohan <varun.chandramo...@wontok.com> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com