• 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: Help: NSScrollView is resizing its documentView down to (0, 0)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help: NSScrollView is resizing its documentView down to (0, 0)


  • Subject: Re: Help: NSScrollView is resizing its documentView down to (0, 0)
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 07 May 2015 11:32:16 -0500

On Thu, May 7, 2015, at 10:52 AM, Jens Alfke wrote:
>
> > On May 6, 2015, at 9:10 PM, Luther Baker <email@hidden> wrote:
> >
> > I'm probably missing something ... but fundamentally, the whole point of constraints between the scrollview and its children is so that the scrollview knows how big to make its contentSize. It sounds like you've got this flipped ... the scrollview is not trying to constrain the size of the document at all - when using autolayout, the scrollview is dynamically trying to determine it's *own* contentSize.
>
> But would it use constraints for that?'

Yes, NSScrollView has supported using constraints between the document
view and the clip view to specify the contentSize since 10.8.
<https://developer.apple.com/library/mac/releasenotes/AppKit/RN-AppKitOlderNotes/>
(section Auto Layout NSSplitView Improvements)

--Kyle Sluder
_______________________________________________

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


References: 
 >Help: NSScrollView is resizing its documentView down to (0, 0) (From: Jens Alfke <email@hidden>)
 >Re: Help: NSScrollView is resizing its documentView down to (0, 0) (From: Uli Kusterer <email@hidden>)
 >Re: Help: NSScrollView is resizing its documentView down to (0, 0) (From: Jens Alfke <email@hidden>)
 >Re: Help: NSScrollView is resizing its documentView down to (0, 0) (From: Luther Baker <email@hidden>)
 >Re: Help: NSScrollView is resizing its documentView down to (0, 0) (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Help: NSScrollView is resizing its documentView down to (0, 0)
  • Next by Date: Re: Help: NSScrollView is resizing its documentView down to (0, 0)
  • Previous by thread: Re: Help: NSScrollView is resizing its documentView down to (0, 0)
  • Next by thread: Re: Help: NSScrollView is resizing its documentView down to (0, 0)
  • Index(es):
    • Date
    • Thread