On 05 May 2015, at 18:26, Jens Alfke <j...@mooseyard.com> wrote: > I haven't done much AppKit work in a while. Right now I have a small app > where I'm trying to do something very simple: put a custom NSView in a window > and make it scrollable. The view determines its own frame size based on the > content it needs to display. So all I did was create a new window in IB, add > an instance of my view, embed it in an NSScrollView, and set up default > constraints for the scroll view so it'll track the window size.
So you're not setting a constraint on the *document* view? How do you expect it to know how to constrain that view otherwise? Have you tried doing that? IIRC you need to implement updateConstraints to create proper constraints, or intrinsicContentSize, or maybe both. _______________________________________________ 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