• 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: refreshing the header title for an NSTableColumn [fixed!]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: refreshing the header title for an NSTableColumn [fixed!]


  • Subject: Re: refreshing the header title for an NSTableColumn [fixed!]
  • From: Josh Burnett <email@hidden>
  • Date: Thu, 10 Nov 2005 17:31:57 -0500

Aha!  That's what I was looking for.

I believe the confusion (on my part and others') arises from the fact that you change the header's title by using the [[tableColumn headerCell] setStringValue:@"newTitle"] method, but to refresh the display the setNeedsDisplay gets sent to the NSTableHeaderView, not the NSTableHeaderCell.

Thanks for all your help! I'm sure others will find this info useful, too.

Josh


On Thu, 10 Nov 2005 08:45:03 -0500, Josh Burnett <email@hidden> wrote:


I've tried the [tableView setNeedsDisplay:YES].  Doesn't work.  Neither
column or its header have setNeedsDisplay methods.

NSTableHeaderView, being a subclass of NSView, has a setNeedsDisplay: method.


Best wishes,
Hamish

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: CoreData, inheritance and plug-ins
  • Next by Date: Re: NSLock locking order;
  • Previous by thread: Re: User Defaults
  • Next by thread: (id)sender tag
  • Index(es):
    • Date
    • Thread