• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom Column Header
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Custom Column Header (From: Chris Schmitt <email@hidden>)

  • Prev by Date: Re: Outline view selection doesn't change when new items are inserted?
  • Next by Date: Re: NSTimer problem
  • Previous by thread: Custom Column Header
  • Next by thread: Starting an alert sheet from an NSWindowController that owns a user-editable sheet
  • Index(es):
    • Date
    • Thread