• 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
Changing document size of scrollview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing document size of scrollview


  • Subject: Changing document size of scrollview
  • From: Nava Carmon <email@hidden>
  • Date: Wed, 18 May 2011 11:31:40 +0300

Hi,

I have a scroll view (NSScrollView) with a document view set as a NSView. This document view is a superview for 2 other views, which are supposed to be resized along with resizing of enclosing document view.
>From time to time I add drawing objects to document view. I need to calculate an enclosing rectangle of all objects and accordingly change the frame of my document view.
My question is when I change the frame of document view the enclosing scroll view has to adjust itself to the new frame size of document view.
What I see that scroll view doesn't adjust itself properly. Do I need to call some specific API to change its content size?

Thanks for advance

Nava
_______________________________________________

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: Changing document size of scrollview
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Temporarily enabling layer backing for NSView
  • Next by Date: NSSlider's mouseDown,mouseUp,mouseDrag - process separately
  • Previous by thread: Reducing AVCaptureVideoDataOutput framerate
  • Next by thread: Re: Changing document size of scrollview
  • Index(es):
    • Date
    • Thread