• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Auto Layout of Matrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Core Data : Undo Delete : Cannot fulfill a fault
  • Next by Date: Re: Questions about -orderFrontTablePanel:
  • Previous by thread: Re: Core Data : Undo Delete : Cannot fulfill a fault
  • Next by thread: Vertical NSplitViews buggy in Lion?
  • Index(es):
    • Date
    • Thread