Re: refreshing the header title for an NSTableColumn
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