• 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: is setting the document view size supported?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSScrollView: is setting the document view size supported?


  • Subject: NSScrollView: is setting the document view size supported?
  • From: Luke Evans <email@hidden>
  • Date: Mon, 9 Feb 2009 18:07:56 -0800

My experiments suggest that simply setting the current document view in an NSScrollView to a new size results in the unexpected behaviour (to me) of having all the content of the document view be scaled up or down to fit the size of the NSClipView.

If you construct new views that are the appropriate size and then do [myScrollView setDocumentView:newView], then everything is peachy: the scroll view adapts to the size of the new new document view.
If you keep the document view, but change its content and resize it accordingly, you get the weird scaling/zooming effect.


Presumably, one is _supposed_ to create a new document view and set it into the NSScrollView when you want to change the content like this, but I'm curious if one is simply "not allowed" to have the document view change size, or if there's some magic plumbing that makes this work (the documentation seems silent on the subject).

-- lwe _______________________________________________

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: is setting the document view size supported?
      • From: Eric Gorr <email@hidden>
  • Prev by Date: Re: Sketch.app / SKTText (was Re: NSTextField - dynamic resizing while editing)
  • Next by Date: [MEET] Minnesota CocoaHeads 2/12/09
  • Previous by thread: Re: NSSavePanel setMessage and line wrapping
  • Next by thread: Re: NSScrollView: is setting the document view size supported?
  • Index(es):
    • Date
    • Thread