Hi again,

I hate answering my own question but I did figure it out. I sub- classed NSTableHeaderCell then created an instance using initImageCell. Then it occurred to me that it seemed a bit silly. If I can init an image cell, maybe I can just set the cell. So, create an outlet to the column (or find it somehow) and in awakeFromNib,

NSImage *image = [NSImage imageNamed:@"CellImage"];
[[theColumn headerCell] setImage:image];

Now to figure out how to prevent the sort indicator from displaying :).

Thanks
Marc

On Jul 20, 2008, at 1:38 PM, Marc Respass wrote:

Hi All,

I have run a number of searches and cannot find any documentation nor examples for putting an image in a table column header. I tried setting the table header column cell to an NSImageCell but that failed fabulously. It seems that I need to sub-class NSTableHeaderCell and draw the image myself instead of text. Can anyone point me in the right direction? Subclassing is fun, no doubt, but if there's a better way, I haven't found it so that's the path I'm planning to take.

Thanks a lot
Marc
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/marcrespass%40mac.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to