• 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
scrolling problem with window resize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scrolling problem with window resize


  • Subject: scrolling problem with window resize
  • From: James Walker <email@hidden>
  • Date: Mon, 27 Feb 2017 17:58:55 -0800

I have a cell-based outline view with one column, rows of variable height, and a vertical scroll bar. I'm trying to restore the previous window size, either by specifying an auto-save name in the nib, or by calling -[NSWindow setFrameUsingName:] after loading the nib, or by calling -[NSWindow setFrame: display:] after loading the nib. The problem is that the scroll bar is messed up, in the sense that moving the thumb all the way to the bottom does not reveal the bottom of the content. But if I grab the bottom of the window and resize it, the scrolling view and scroll bar get back in sync. Likewise, if I make the window visible right before I set the frame, all is well.

Any idea why it would matter whether the window is visible yet? And is there some way to slap NSScrollView upside the head to make its scroll bar get into sync with its content?
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: Need replacement of Component Manager::OpenDefaultComponent
  • Next by Date: macOS 10.13 suggestion for init() throws
  • Previous by thread: Re: Memory-mapped sub-data?
  • Next by thread: macOS 10.13 suggestion for init() throws
  • Index(es):
    • Date
    • Thread