Re: Auto layout semantics?

2013-09-09 Thread Kevin Cathey
Exactly right. And you can use the simplex behavior to your advantage. For example that's how you can build a fitting size method (or in other words this is how the system fitting size method works). Add a constraint with constant 0 with a lower priority and the system will crush the view as

Re: Auto layout semantics?

2013-09-05 Thread Marcel Weiher
[this seems to have bounced earlier] Hi Kyle, Izak, On Aug 16, 2013, at 19:18 , Kyle Sluder k...@ksluder.com wrote: As Ken Ferry described in his Auto Layout session at WWDC 2011, the specific solver used by Apple is based on the Cassowary constraint engine. Yes, the algorithm involved is a

Re: Auto layout semantics?

2013-08-16 Thread Izak van Langevelde
On 15 aug. 2013, at 20:16, Fritz Anderson wrote: Do I understand correctly that you have a row in your form that looks like: |--Label1-Field1--Label2-Field2 --| ? (Not intended to be a constraint-specification format.) And you want Label1 and Label2 to be of fixed (identical?) size, and

Re: Auto layout semantics?

2013-08-16 Thread Kyle Sluder
[bringing this back on-list] On Aug 16, 2013, at 1:10 PM, Izak van Langevelde eezac...@xs4all.nl wrote: Dear Kyle, On 16 aug. 2013, at 18:38, Kyle Sluder wrote: What I am looking for is the algorithm that determines a layout based on a set of constraints. As I mentioned, it converts

Re: Auto layout semantics?

2013-08-16 Thread Izak van Langevelde
On 16 aug. 2013, at 19:18, Kyle Sluder wrote: [bringing this back on-list] On Aug 16, 2013, at 1:10 PM, Izak van Langevelde eezac...@xs4all.nl wrote: Dear Kyle, On 16 aug. 2013, at 18:38, Kyle Sluder wrote: What I am looking for is the algorithm that determines a layout based on a

Auto layout semantics?

2013-08-15 Thread Izak van Langevelde
I wasted some time trying to use auto layout to maintain the layout of a form, to make sure that fields are horizontally resized with the form, while labels maintain their size. However, when two fields are sitting next to each other, having the same priority, only one of them resizes with the

Re: Auto layout semantics?

2013-08-15 Thread Kyle Sluder
On Thu, Aug 15, 2013, at 09:33 AM, Izak van Langevelde wrote: I wasted some time trying to use auto layout to maintain the layout of a form, to make sure that fields are horizontally resized with the form, while labels maintain their size. However, when two fields are sitting next to each

Re: Auto layout semantics?

2013-08-15 Thread Fritz Anderson
On 15 Aug 2013, at 11:33 AM, Izak van Langevelde eezac...@xs4all.nl wrote: I wasted some time trying to use auto layout to maintain the layout of a form, to make sure that fields are horizontally resized with the form, while labels maintain their size. However, when two fields are sitting