On Dec 23, 2012, at 22:44 , Antonio Nunes <[email protected]> wrote:

> Currently, in awakeFromNib, I adjust all user facing interface elements to 
> the target language, and I had hoped that with wider, and sometimes higher 
> controls, the containing sheet/popover would automatically resize to 
> compensate for the larger dimensions. It doesn't. I find I need to calculate 
> the new size of the container and set it manually.
> 
> Is there a way to specify auto layout settings such that all this is taken 
> care of automatically by the autlayout system?

Have you read this:

        
https://developer.apple.com/library/mac/#releasenotes/UserExperience/RNAutomaticLayout/_index.html

or this:

        
https://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AutolayoutPG/Articles/Introduction.html

? The first might be more appropriate for you because it's older -- was written 
for 10.7, while the second was updated a couple of months ago.

It seems to me that changing the UI elements in awakeFromNib probably isn't 
enough, since that doesn't tell the layout system that something has changed. 
Anyway, these documents try to explain the correct place to make the 
adjustments (see "Core Layout Runtime"), though it might take some studying.

It may also be that the container view *is* resizing due to the updated layout 
conditions, but something else is forcibly doing a setFrame on it shortly 
afterwards. Do any of the layout debugging aids (see "Debugging") tell you what 
the sequence of events is in your case?


_______________________________________________

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