Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6016567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:00:04+00:00 2026-05-23T03:00:04+00:00

I have an NSTableView embedded within a custom NSScrollView subclass, wherein I sometimes do

  • 0

I have an NSTableView embedded within a custom NSScrollView subclass, wherein I sometimes do scrolling programmatically, like so:

[[self contentView] scrollToPoint:newOffset];
[self reflectScrolledClipView:[self contentView]];

When I do this, the NSTableView scrolls fine, but its associated NSTableHeaderView doesn’t move with it. If I use my mouse and scroll the NSScrollView normally, however, they move together like they should.

I figure I’m probably just missing a single line somewhere that lets the NSTableHeaderView know that it’s supposed to scroll too, but I don’t know what that is. Can anyone help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:00:05+00:00Added an answer on May 23, 2026 at 3:00 am

    Well, I don’t know precisely what kind of black magic goes on under the hood when you scroll an NSScrollView containing an NSTableHeaderView with the mouse, but it looks like it handles it internally somewhere. To circumvent this, I now only scroll the NSTableView programatically (by overriding the functions that would handle user input), and then I scroll the NSTableHeaderView myself, like so:

    NSTableHeader *header = [[self documentView] headerView];
    [header setBoundsOrigin:NSMakePoint(newOffset.x,[header bounds].origin.y)];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom NSTableView subclass which is bound to a data source (an
I have a custom NSTableView subclass filled with several custom NSTextFieldCell subclasses. I would
I have an NSTableView which is bound to an NSArrayController. I would like to
I currently have an NSTableView inside an NSScrollView and this gets it's contents from
i have an NSTableView with custom view cells from NSCell i'm now trying to
I have an NSTableView with 4 columns. I also have a custom background color
I have an NSTableView which displays some information representing a custom object of mine.
I have an NSTableView that contains a number of items. I'd like to implement
I have NSTableView with two columns, and i wanna fill them entries from SQLite
I have a NSTableView that contains a NSButtonCell in one of the columns. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.