This sample project shows how to implement localstorage and windowscriptobject for Mac OS X application.