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 protected]> wrote:

> On Mar 19, 2013, at 10:32 PM, Rick Mann <[email protected]> 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 protected])

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 [email protected]

Reply via email to