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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to