Pay attention to the following picture:
![[example of PastryKit web application]](http://img.skitch.com/20091216-r64hkd9dpghwiqd5skh8nq4j73.png)
On the screen of this iPhone, you see an application that looks like a regular application; nevertheless, it is launched via the Internet, it is a site that is viewed in the mobile version of the Safari browser. This effect is achieved using the PastryKit library developed by Apple: the library disables the Safari address bar, the library provides fixed positioning of toolbars, the library even replaces the way Safari sites scroll, adding to it the “momentum preservation” that is specific to iPhone apps, not sites Safari.
')
PastryKit library consists of CSS and javascripts. It is used in the “iPhone User Guide”, as well as, to some extent,
in iTunes
LP files , but it is not very clear whether Apple is going to promote and document the use of PastryKit; blogger and developer John Gruber
(John Gruber; this is the one who invented Markdown markup) relatively accidentally
discovered the PastryKit library on the Apple website and let other interested developers know about its existence.
You can read more about all this
on the Ajaxian blog ; it also tells how and where you can download and connect PastryKit.