Date
1 - 1 of 1
NSScrollView showing part of view with white space above
Graham Cox
One thing I find when working with scroll views is that making the contained view flipped is usually helpful. If you return YES from an override to -isFlipped, scroll views default to a position with the the scroller at the top, not the bottom. It generally makes layout and calculations in the view easier as you are working with a more conventional coordinate system. Flipping the view generally doesn’t make anything else more difficult -in fact, usually easier.
toggle quoted message
Show quoted text
Also, just set the bounds to whatever size you need and NSScrollView will generally just figure out everything else. You don’t need to directly manipulate the scrollbars or calculate anything. —Graham
|
|