On Thu, May 7, 2015, at 10:52 AM, Jens Alfke wrote:
> 
> > On May 6, 2015, at 9:10 PM, Luther Baker <lutherba...@gmail.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to