Auto Layout of Matrix
Auto Layout of Matrix
- Subject: Auto Layout of Matrix
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Mon, 26 Sep 2011 16:00:22 +0700
Because I had a bad experience with localized nib files being out of sync, I am trying a new strategie:
Directly after loading a nib, I walk through all subviews replacing titels, stringValues and toolTips.
And I use Lions Auto Layout (Xcode 4.1) to get everything arranged nicely.
One problem I am unable to fix though:
The window has a column of radio buttons, but when I walk through the ButtonCells inside the Matrix using setTitel to properly localized strings, the size of the matrix is *not* updated and if the new strings are longer than those in the original nib file, they are just cut off.
I tried all of these:
[ view setNeedsLayout: YES ];
[ view setNeedsUpdateConstraints: YES ];
[ view updateConstraints ];
[ view updateConstraintsForSubtreeIfNeeded ];
[ view layoutSubtreeIfNeeded ];
[ view layout ];
but so far without any success.
Kind regards,
Gerriet.
_______________________________________________
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