• 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: Custom view in NSScrollView in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom view in NSScrollView in IB


  • Subject: Re: Custom view in NSScrollView in IB
  • From: Rick Mann <email@hidden>
  • Date: Tue, 19 Mar 2013 22:49:48 -0700

Okay, so it's not just me. Thanks!

I don't know why, but I always find NSScrollView incredibly counter-intuitive, and the bugs in IB exacerbate that dramatically.

--
Rick

On Mar 19, 2013, at 22:48 , Kyle Sluder <email@hidden> wrote:

> On Mar 19, 2013, at 10:32 PM, Rick Mann <email@hidden> wrote:
>
>> Hi. I've embedded my custom view in an NSScrollView, but I can't get IB to resize the custom view's frame when I resize the scroll view. I just want it to match while repositioning the view as I evolve my UI.
>
> This is because IB incorrectly omits the autoresizing mask controls when auto layout is enabled in the nib, even if translatesAutoresizingMaskIntoCnstraints is turned on for the view. Please file a bug on this; it will probably be duped to mine.
>
>>
>> Also, it doesn't let me create autolayout constraints for it.
>
> As implied above, translatesAutoresizingMaskIntoConstraints is on for your document view. This is because NSClipView expects this to be the case. See my recent discussion with Chuck Soper on this list for a technique to integrate auto layout with NSScrollView.
>
> Attempting to use constraints directly on your document view will lead to unsatisfiable constraint exceptions, ambiguous layout, or both.
>
> --Kyle Sluder


--
Rick




_______________________________________________

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: 
 >Custom view in NSScrollView in IB (From: Rick Mann <email@hidden>)
 >Re: Custom view in NSScrollView in IB (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Custom view in NSScrollView in IB
  • Next by Date: accessing notification center programatically
  • Previous by thread: Re: Custom view in NSScrollView in IB
  • Next by thread: accessing notification center programatically
  • Index(es):
    • Date
    • Thread