Re: How to resize accessory view to match Open panel
Re: How to resize accessory view to match Open panel
- Subject: Re: How to resize accessory view to match Open panel
- From: Ken Thomases <email@hidden>
- Date: Thu, 09 Jul 2015 10:18:03 -0500
On Jul 9, 2015, at 7:05 AM, Jonathan Taylor <email@hidden> wrote:
> I gave it a try, setting what I thought should be needed, but it doesn’t seem to be having the desired effect as yet. I have the nib file set to “Use autolayout”, and have included the code you quoted.
Even in a NIB set to use auto layout, top-level views have translatesAutoresizingMaskIntoConstraints turned on. So, you should turn it off in the NIB on the Attributes inspector or in code after you've loaded it, if the open panel is expected to be auto-layout-savvy. (In general, actually, one should leave it on and let the code which places the view into a larger hierarchy decide whether to turn it off. But maybe turning it off will work for this case. I don't know.)
Regards,
Ken
_______________________________________________
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