NSScrollView: Limiting scrolling size...
NSScrollView: Limiting scrolling size...
- Subject: NSScrollView: Limiting scrolling size...
- From: Matthew Cox <email@hidden>
- Date: Sat, 13 Oct 2001 18:26:28 -0400
I managed to solve my earlier problem with drawing the scroll view, I
mistakingly set the bounds rect of the documentView when I needed to set
the frame rect. I now need to find a way to keep the scroll view from
expanding beyond the size of the document.
Since the view could be of any size, I would think I would need to:
calculate the maximum size of the image, add the size of the scroll
bars, add the size of the padding space from the window edge, and then
set the maximum size of the window. Is there an easier way of
accomplishing this?