On Dec 20, 2014, at 2:08 PM, H Miersch <hmier...@me.com> wrote:

> i have a window with a custom view in it. I add another view in code and then 
> i add a couple of constraints to centre the new view in its superview. so far 
> so good.
> 
> if i DON'T call [self setTranslatesAutoresizingMaskIntoConstraints:NO]; on my 
> subview, it appears, but the superview (and wit it the window) is reduced in 
> size to the size of the subview, and i can't make the window bigger using the 
> mouse.

You've shown the constraints for the size of the subview.  What are the 
constraints for centering it in its superview?  Is the superview the window's 
contentView?  If not, what are the constraints on the superview relative to 
_its_ superview?

Regards,
Ken


_______________________________________________

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