• 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
Re: NSScrollView: Limiting scrolling size...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSScrollView: Limiting scrolling size...


  • Subject: Re: NSScrollView: Limiting scrolling size...
  • From: Brian Webster <email@hidden>
  • Date: Sun, 14 Oct 2001 13:12:42 -0500

On Saturday, October 13, 2001, at 05:52 PM, cocoa-dev-
email@hidden wrote:

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?

Well, for calculating the max size of the scroll view, you might want to look at +[NSScrollView frameSizeForContentSize:hasHorizontalScroller:hasVerticalScroller:borderType:
], which will give you the size of the scroll view for a given content size.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster


  • Prev by Date: Re: NSDocument & NSOutlineView questions
  • Next by Date: Re: java
  • Previous by thread: NSScrollView: Limiting scrolling size...
  • Next by thread: Silkscreened Image in OS X Installer
  • Index(es):
    • Date
    • Thread