Re: Custom Column Header
Re: Custom Column Header
- Subject: Re: Custom Column Header
- From: Corbin Dunn <email@hidden>
- Date: Thu, 17 Jan 2008 10:32:26 -0800
On Jan 17, 2008, at 9:39 AM, Chris Schmitt wrote:
I am looking to draw my own column header for an NSOutlineView. I
have looked at the classes NSTableHeaderCell and NSTableHeaderView
and I am not quite sure which I need to implement to make this
happen. It would seem that you would need to create a custom
NSTableHeaderCell that calls a custom NSTableHeaderView, but I am
not sure what methods would need to be implemented. I have looked
at some of the user experience demos mainly the "Source View" demo
and there is no mention of changing the header columns.
Any advice on where to start would be very much appreciated.
Here's how:
1. Create a custom subclass of NSTableHeaderCell.
2. Call [tableColumn setHeaderCell:yourCell] -- this is the piece you
are missing. It is easy to do..
corbin
_______________________________________________
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