• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: refreshing the header title for an NSTableColumn


  • Subject: Re: refreshing the header title for an NSTableColumn
  • From: John Buckley <email@hidden>
  • Date: Fri, 11 Nov 2005 09:09:51 +0000

On 11 Nov 2005, at 03:43, gennady wexler wrote:

That indeed does work!

I agree with this being a bug, something more intuitive like the below
should just do the job:

[someTable setNeedsDisplay:YES]

Where all subviews should be updated, imho.

NSTableHeaderView isn't a subview of NSTableView. When you drag on a NSTableView in IB it is placed in a NSScrollView (actually in the NSClipView which is a subview of the scrollview). The NSTableHeaderView is added as a direct subview of the NSScrollView (i.e. not in the NSClipView) so it doesn't get scrolled.


So if you have a typical NSTableView arrangement you could do this:

[[ someTable enclosingScrollView] setNeedsDisplay:YES];

Regards,

John

________________

Dr. J. R. Buckley
email@hidden

Mac OS X "Tiger"
________________


_______________________________________________ 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
References: 
 >Re: refreshing the header title for an NSTableColumn (From: gennady wexler <email@hidden>)

  • Prev by Date: Re: Sorting NSTableView on two keys
  • Next by Date: Re: AAC ID3 Tags
  • Previous by thread: Re: refreshing the header title for an NSTableColumn
  • Next by thread: .Mac (DotMac) SDK questions
  • Index(es):
    • Date
    • Thread