Wednesday, April 7th, 2010
We heard a little about PastryKit, a cool library from Apple that makes great iPhone apps using the Web. Now we see the mysterious AdLib which seems to be similar but gives you goodness on the iPad instead.
Jim Hoskins checked it out:
What was more interesting is that there was an entire framework running this web application. The framework weighed in at 4,300 lines of code, and was unmistakably an Apple-born API. Every class and constant was prefixed with the letters “AD” and some of the classes include ADTabBarController, ADScrollPane, ADViewController, ADView, ADToolbar, and dozens more.
What does the AD prefix stand for? I don’t know. The framework itself was contained in a file called AdLib-ug-ipad.js, so for the time being let’s call it AdLib. I also appreciate the sense of humor the developers seem to have about the name. The accompanying application code that utilizes the framework is about 1,500 lines and offers a few clues as to how to use the AdLib framework. There is no documentation in the code or anywhere online, and the local variables are shortened to a, b, c, etc… If you want to know more about how it works, take a look at the code linked below.
And with the simple stuff, Jason Grigsby has a posting that shows simple CSS for handling portrait and lanscape via:
- <link rel=”stylesheet” media=”all and (orientation:portrait)” href=”portrait.css”>
- </link><link rel=”stylesheet” media=”all and (orientation:landscape)” href=”landscape.css”>
Cappucinno, SproutCore, Coherent, PastryKit, AdLib, ….. a lot of interesting apple-y things.
Posted by Dion Almaer at 4:24 pm