restoring the stored scroll position of an NSTableView and it's NSTableHeaderView.
restoring the stored scroll position of an NSTableView and it's NSTableHeaderView.
- Subject: restoring the stored scroll position of an NSTableView and it's NSTableHeaderView.
- From: Kenneth Clark <email@hidden>
- Date: Wed, 17 May 2006 14:58:55 -0500
I have an SNTableView that I need to set to a stored scroll position.
The existing code is :
// Scroll Position
theObj = [inDict objectForKey:kSnapshotScrollPosition];
if (theObj)
{
NSPoint thePoint;
sscanf([theObj UTF8String], "%f %f", &thePoint.x, &thePoint.y);
[[[self enclosingScrollView] contentView] scrollToPoint:thePoint];
[[self enclosingScrollView] reflectScrolledClipView:[[self
enclosingScrollView] contentView]];
}
The main view of the table works fine, but the NSTableHeaderView
doesn't scroll to the right place.
1) Is this the right way to reset the scroll position of an
NSTableView?
2) If it is, how do I get the Header view to sync with the table
scrolled position?
Thanks
_______________________________________________
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