• 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
restoring the stored scroll position of an NSTableView and it's NSTableHeaderView.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: restoring the stored scroll position of an NSTableView and it's NSTableHeaderView.
      • From: Lon Giese <email@hidden>
  • Prev by Date: Re: Should I retain/release IBOutlet?
  • Next by Date: Re: Re: Should I retain/release IBOutlet?
  • Previous by thread: Re: How to create "pressed" effect on custom rounded buttons (like Safari bookmark)
  • Next by thread: Re: restoring the stored scroll position of an NSTableView and it's NSTableHeaderView.
  • Index(es):
    • Date
    • Thread