I need to implement a headerview
with specific size and gradient. I have to insert images in certain cells of the headerview
.Tried to create the cells for the headerview
using the following code,but i was not able to customize the headerview
.
[[tableColumn headerCell] setImage:[NSImage imageNamed:@"sampleHeader"]];
If I use the overridden subclass of headerview, I was not able to view the images or text in the header cell.Please provide me any pointers to solve this issue.
I was able to insert images and text by subclassing the NSTableHeaderCell
.How to increase height of the NSTableHeaderView
?
If I subclass both NSTableHeaderView
and NSTableHeaderCell
, was not able to view anything in the
headercell.I used the following code for setting headerview and headercell
[tableView setHeaderView:CustomHeaderView];
[tableColumn setHeaderCell:[[[CustomHeaderTableCell alloc] initImageCell:
[NSImage imageNamed:@"sample"]]autorelease]];
I have the same issue as given in the below url
http://lists.apple.com/archives/cocoa-dev/2002/Jun/msg00331.html