• 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: Jens Alfke <email@hidden>
  • Date: Tue, 05 May 2015 18:21:54 -0700

> On May 5, 2015, at 5:54 PM, Roland King <email@hidden> wrote:
>
> Constrain the scrollview to something above it if it needs it, if it’s the whole window, probably doesn’t.
> Constrain the clipview to all 4 sides of the scrollview.
> Constrain your view to the top, right and left of the clipview but not the bottom.
> Override the clipview and return isFlipped=YES

I was assuming that the "Editor > Embed In > Scroll view" command would set things up to basically work. (The way it used to in the old days.) Whereas the reality is that IB creates the enclosing views for me, but then helpfully avoids actually setting up any of the constraints they need? WTF?

Also, where does one go to learn that the above constraints are needed? Is this just knowledge picked up through trial and error?

I reallllly don't want to sound like one of those old farts grousing about the old days, but when I learned Cocoa programming in 2000 I was blown away by how easy everything was and how well IB worked. If I were starting out now, I don't think I'd feel the same way.

—Jens
_______________________________________________

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: 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: Roland King <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: Roland King <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