3 ms·
Maybe someone with more experience in the platform can confirm or deny this. There are a bunch of things that have been standard issue in certain frameworks fo
by asveikau 9y ago
Maybe someone with more experience in the platform can confirm or deny this. There are a bunch of things that have been standard issue in certain frameworks for decades. Then Apple "invents" the same topic and the Apple-focused people who have not looked elsewhere start to drool over it and call it very innovative and new.
I think Auto Layout smells like one of these. UI toolkits in other niches have had dynamically sized layout engines for a long time. But some platforms, like Win32, or Mac, or NeXT, were more into absolute positioning for longer. Now Apple is picking up other ideas, and it's oh my god so amazing (assuming you've been in the Apple world the whole time).
- ridiculous_fish 9y agoI was one of the maintainers (but not inventors) of Apple's autolayout. It's not at all true that "Mac or NeXT" (?) views were absolutely positioned: they used dynamic positioning via autoresizing, which started with a reference layout and then declaratively described how to modify it. This already is well beyond simple absolute layouts and is sufficient for many cases. Autolayout takes this a step further by adding constraints and priorities for breaking them. This allows you to declaratively and naturally express tricky layouts like aspect ratios or preferred minimum sizes ("I'll have to truncate at...") which are typically special-cased in other layout engines. Tooling around this stuff is challenging, but the architecture is leagues beyond the simple dynamic layout engines in other UI toolkits. iOS can't fully realize it (no resizable windows) but on the Mac it shines.
- asveikau 9y agoI guess I must have imagined a decade or more of seeing absolute positioning in objc code. I will re-state it. What would cause people to say that Auto Layout is one of the top achievements Apple has ever produced? Unfamiliarity with how other people have approached the problem is high on my list.
- rimliu 9y agoAs usual Apple does not claim it invented the concept. They refer to http://constraints.cs.washington.edu/cassowary/ http://constraints.cs.washington.edu/cassowary/ in their WWDC 2011 session 103.
- asveikau 9y agoAs usual? Apple has done a lot of weird stuff when it comes to claiming to have invented things. Need I remind you that the CUPS source code and documentation says (c) 1997 Apple? True they bought the copyright, they bought it 10 years later and erased all evidence that it ever existed outside of Apple... Second I wasn't claiming Apple made any claims on inventing layout, it was more that the third party Apple community acts like it did. Kind of like how they act like Apple invented threads and concurrent queues with GCD. I heard a prominent Apple fan claim that Apple invented localization to RTL languages, when the reality is this was a topic they neglected for a very long time while others were doing it. I hear and read this kind of crap all the time. My point is that Apple fans live in a bubble and tend to credit Apple for things that others have done for decades.