New Cocoa Constraint-Based Autolayout from Lion [+1] #1437

Open
d4tocchini opened this Issue Jan 24, 2012 · 12 comments

Projects

None yet

7 participants

@d4tocchini

It would be cool to have the new Lion layout APIs

Owner

Definitely amazing. Would love to have it. Patches (or thick stacks of cash) welcome. :)

Owner

I also would love to see this in Cappuccino :)

Contributor
daboe01 commented Feb 8, 2012

GNUstep Renaissance is something similar (out there since 2001)
http://www.gnustep.it/Renaissance/Manual/index.html

it provides powerful autolayout capabilities and obsoletes the InterfaceBuilder dependency.

see demo of my prelimiary port to capp at http://aug-fancy.ukl.uni-freiburg.de/NewApplication/

Owner

Interface Builder will still be key even with constraint based auto layout. There's nothing worse than trying to lay out a UI by repeatedly reloading an app. That's like sewing with a blindfold. Frustrating, result rarely very good and sometimes you prick your finger and smear blood over your whole UI.

cappbot commented May 9, 2012

Milestone: Someday. Labels: #needs-patch, AppKit, feature. What's next? This issue needs a volunteer to write and submit code to address it.

Contributor
cacaodev commented May 7, 2015

For those interested, here is the current status of Autolayout implementation in cappuccino
There is also an Online demo

There is a list of current bugs / missing features in the main README. I can translate it to proper github issues if needed.
Note that there is a submodule referring to the cassowary.js repo but I am not using it anymore. The compiled cassowary js file is now included the Autolayout branch at AppKit/cassowary/c.js.

Contributor

@cacaodev, as for -baselineOffsetFromBottom, if that means text baseline, I wrote that code a long time ago. I'll try to locate it.

Contributor
daboe01 commented May 8, 2015

the online demo is freaking cool :-)
thank you!

Contributor
daboe01 commented May 8, 2015

+1

cappbot commented May 8, 2015

Milestone: Someday. Vote: 1. Labels: #needs-patch, AppKit, feature. What's next? This issue needs a volunteer to write and submit code to address it.

@cappbot cappbot changed the title from New Cocoa Constraint-Based Autolayout from Lion to New Cocoa Constraint-Based Autolayout from Lion [+1] May 8, 2015
Contributor
cacaodev commented May 8, 2015

Thanks @aparajita. Yes, It's the text baseline for the div element _DOMTextElement in _CPImageAndTextView.

Contributor

@cacaodev, you should be able to leverage the code here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment