• 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
Re: Auto layout semantics?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auto layout semantics?


  • Subject: Re: Auto layout semantics?
  • From: Izak van Langevelde <email@hidden>
  • Date: Fri, 16 Aug 2013 21:36:23 +0200

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 <email@hidden> 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 all the constraints in your window into linear equations and feeds them to a constraint solver. This solver produces frames for all views in the window.
>
> 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.
>
> So asking for the "algorithm" isn't really that helpful, because Auto Layout is not defined or implemented imperatively. There's an algorithm involved, but that algorithm is a general-purpose constraint solver that operates on linear equations. Strictly speaking it has nothing to do with views.

That is good enough for me, I'll take a look at it.

Thanks,
Izak

---
Grinnikend door het leven...


_______________________________________________

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


References: 
 >Auto layout semantics? (From: Izak van Langevelde <email@hidden>)
 >Re: Auto layout semantics? (From: Kyle Sluder <email@hidden>)
 >Re: Auto layout semantics? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Is it OK to setKeyEquivalent during validateMenuItem
  • Next by Date: Re: Is it OK to setKeyEquivalent during validateMenuItem
  • Previous by thread: Re: Auto layout semantics?
  • Next by thread: Re: Auto layout semantics?
  • Index(es):
    • Date
    • Thread