I am trying to produce a custom header for my NSTableView. I would like to change the font of the header text and remove the borders and vertical separators.
My current top and bottom header is shown below:
Does anyone know how do I do this please?
UPDATE: After applying the fix the header now looks as I intended:


Actually both the answers from mprudhom and Pronto contributed nicely to the final fix. Many thanks to both of you.
I thought I'd post my final answer so anyone following on can see how I fixed it.
I couldn't use mprudhom's code alone as my table only had a NSTableHeaderView and no TableHeaderCells. Fortunately Pronto came to the rescue on that:
I used the NSTableHeaderCell code directly from mprudhom:
Once these two methods were implemented, I had one last problem in that the NSTableHeaderView was drawn without the border as required but did have a grey background. So I overrode the NSTableHeaderView class with this method: