• 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
NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSScrollView


  • Subject: NSScrollView
  • From: Christopher Henrich <email@hidden>
  • Date: Sat, 11 Jul 2009 18:04:55 -0400

I am working on an app which (among other things) draws a diagram which is likely to be too large for the window in which it is to be displayed. Obviously, this is a job for NSScrollView.

I have been perusing the documentation of NSScrollView, and I do not see an explicit statement of how to tell my scroll view the current size of its "document view." The Scroll View Programming Guide, in Creating and Configuring a Scroll View, has an example in which both the frame rectangle and the bounds rectangle are set to the size of the document view.

Based on the section How Scroll Views Work, I surmise that the scroll view uses the frame rectangle to determine the size of the document view. Have I got this right?

Christopher Henrich
email@hidden
mathinteract.com




_______________________________________________

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


  • Follow-Ups:
    • Re: NSScrollView
      • From: Kyle Sluder <email@hidden>
    • Re: NSScrollView
      • From: Steve Christensen <email@hidden>
  • Prev by Date: KVC and addObject for "to-many" properties
  • Next by Date: Re: KVC and addObject for "to-many" properties
  • Previous by thread: Re: KVC and addObject for "to-many" properties
  • Next by thread: Re: NSScrollView
  • Index(es):
    • Date
    • Thread