On Sep 21, 2014, at 9:10 AM, Allan Odgaard <lists+cocoa-...@simplit.com> wrote:

> I am overriding `NSView`’s `layout` method to manually place one of my 
> subviews.

> The problem seems to be that `layoutSubtreeIfNeeded` calls 
> `resizeWithOldSuperviewSize:` (using the containing view’s size), but 
> regardless of what’s passed to the view, it’ll set the entire frame and using 
> values from its constraints (falling back to zero if there isn’t any).

Does it still do that if the superview has autoresizesSubviews set to NO?

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