On Jul 9, 2015, at 7:05 AM, Jonathan Taylor <jonathan.tay...@glasgow.ac.uk> 
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 (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